Skip to content

Commit 33c5d84

Browse files
committed
Don't return frozenset for modules
1 parent 85d4c42 commit 33c5d84

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

scripts/update_lib/deps.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self) -> None:
3636
self.__imports = set()
3737

3838
@property
39-
def test_imports(self) -> frozenset[str]:
39+
def test_imports(self) -> set[str]:
4040
imports = set()
4141
for module in self.__imports:
4242
if not module.startswith("test."):
@@ -48,13 +48,11 @@ def test_imports(self) -> frozenset[str]:
4848

4949
imports.add(name)
5050

51-
return frozenset(imports)
51+
return imports
5252

5353
@property
54-
def lib_imports(self) -> frozenset[str]:
55-
return frozenset(
56-
module for module in self.__imports if not module.startswith("test.")
57-
)
54+
def lib_imports(self) -> set[str]:
55+
return {module for module in self.__imports if not module.startswith("test.")}
5856

5957
def visit_Import(self, node):
6058
for alias in node.names:

0 commit comments

Comments
 (0)