Skip to content

Commit

Permalink
Make architecture fields Final (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed May 11, 2024
1 parent f2c2434 commit 33a53e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/spandrel/spandrel/__helpers/model_descriptor.py
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 33a53e2

Please sign in to comment.