File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments