Repository: amogorkon/justuse (language: python)

Issue:
can't import use on windows >:|
```
>>> import use
Starting new HTTPS connection (1): pypi.org:443
https://pypi.org:443 "GET /pypi/justuse/json HTTP/1.1" 200 8257
Traceback (most recent call last):
  File "F:\Dropbox (Privat)\code\justuse\src\use\use.py", line 404, in __init__
    if Version(__version__) < max_version:
  File "F:\Dropbox (Privat)\code\justuse\src\use\use.py", line 143, in __init__
    return super().__init__(str(versionstr))  # this is just wrong :|
  File "C:\Users\micro\AppData\Local\Programs\Python\Python39\lib\site-packages\packaging\version.py", line 266, in __init__
    raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: 'None'
```


Discussion / hints:

Fix patch:
diff --git a/src/use/use.py b/src/use/use.py
index 38ef5ca4..1f427f2b 100644
--- a/src/use/use.py
+++ b/src/use/use.py
@@ -120,11 +120,7 @@ def __init__(self, platform):
 
 # injected via initial_globals for testing, you can safely ignore this
 test_version: Optional[str] = locals().get("test_version", None)
-try:
-    __version__ = test_version #type: ignore
-except NameError:
-    __version__ = "0.4.1"
-    test_version = None
+__version__ = test_version or "0.4.1"
 
 _reloaders: Dict['ProxyModule', Any] = {}  # ProxyModule:Reloader
 _aspects: Dict[Any, Any]= {}


Test patch:
diff --git a/src/use/test.py b/src/use/test.py
new file mode 100644
index 00000000..81f6bcd5
--- /dev/null
+++ b/src/use/test.py
@@ -0,0 +1,1 @@
+import use
\ No newline at end of file