Repository: amogorkon/justuse (language: python)

Issue:
Merge to main



Discussion / hints:

Fix patch:
diff --git a/src/use/__init__.py b/src/use/__init__.py
index eab4d6a2..12845e64 100755
--- a/src/use/__init__.py
+++ b/src/use/__init__.py
@@ -3,8 +3,9 @@
 Only imports and project-global constants are defined here. 
     
 """
+
 import sys
-if sys.version_info < (3, 9) and not "tests" in sys.modules:
+if sys.version_info < (3, 9) and "tests" not in sys.modules:
     import gc, types, typing
     from typing import _GenericAlias as GenericAlias
     for t in (list, dict, set, tuple, frozenset):


Test patch:
diff --git a/tests/.tests/.test5.py b/tests/.tests/.test5.py
index bf10211f..098f6dd4 100644
--- a/tests/.tests/.test5.py
+++ b/tests/.tests/.test5.py
@@ -52,7 +52,7 @@ def factorial_lru(n):
 print([f(results) for f in [min, max, median, mean, stdev]])
 
 results = []
-for x in range(10000):
+for _ in range(10000):
     before = perf_counter_ns()
     factorial_tail(200)
     foo = perf_counter_ns()-before
diff --git a/tests/__init__.py b/tests/__init__.py
index e860f72c..9be276db 100755
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -5,7 +5,7 @@
 os.chdir(src)
 sys.path.insert(0, "") if "" not in sys.path else None
 
-if sys.version_info < (3, 9) and not "use" in sys.modules:
+if sys.version_info < (3, 9) and "use" not in sys.modules:
     import gc, types, typing
     from typing import _GenericAlias as GenericAlias
     for t in (list, dict, set, tuple, frozenset):