X Tutup
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions scripts/update_lib/deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self) -> None:
self.__imports = set()

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

imports.add(name)

return frozenset(imports)
return imports

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

def visit_Import(self, node):
for alias in node.names:
Expand Down
Loading
X Tutup