Skip to content

Commit

Permalink
Make architecture fields Final
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed May 11, 2024
1 parent f2c2434 commit e3ad4e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/spandrel/spandrel/__helpers/model_descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Any,
Callable,
Dict,
Final,
Generic,
Literal,
NewType,
Expand Down Expand Up @@ -49,8 +50,8 @@ def __init__(
) -> None:
super().__init__()

self._id = ArchId(id)
self._name = name or id
self._id: Final[ArchId] = ArchId(id)
self._name: Final[str] = name or id
self._detect = detect

@property
Expand Down

0 comments on commit e3ad4e4

Please sign in to comment.