Skip to content

Commit

Permalink
refactor(stubs): update repository impls to retain immutability.
Browse files Browse the repository at this point in the history
Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
  • Loading branch information
BradenM committed Dec 11, 2022
1 parent 2a6ffa3 commit b44b335
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion micropy/stubs/repositories/micropy.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class MicropyStubPackage(StubPackage):
class MicropyStubsManifest(StubsManifest):
location: str
path: str
packages: list[MicropyStubPackage]
packages: frozenset[MicropyStubPackage]

@root_validator(pre=True)
def check(cls, values: dict):
Expand Down
2 changes: 1 addition & 1 deletion micropy/stubs/repositories/micropython.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class MicropythonStubsPackage(StubPackage):

class MicropythonStubsManifest(StubsManifest):

packages: list[MicropythonStubsPackage]
packages: frozenset[MicropythonStubsPackage]

@validator("packages", pre=True)
def _get_packages(cls, v: dict[str, dict]):
Expand Down

0 comments on commit b44b335

Please sign in to comment.