You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On python versions that do not provide typing.Self (i.e., python <= 3.10), schwifty falls back to using typing_extensions. However, it does not specify typing-extensions as a requirement, and consequently user installing schwifty in a clean virtual environment will end up with defunct version. For example, on linux:
Traceback (most recent call last):
File "[...]/venv/lib64/python3.10/site-packages/schwifty/common.py", line 9, in <module>
from typing import Self
ImportError: cannot import name 'Self' from 'typing' (/usr/lib64/python3.10/typing.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "[...]/venv/lib64/python3.10/site-packages/schwifty/__init__.py", line 6, in <module>
from schwifty.bban import BBAN
File "[...]/venv/lib64/python3.10/site-packages/schwifty/bban.py", line 5, in <module>
from schwifty import common
File "[...]/lib64/python3.10/site-packages/schwifty/common.py", line 11, in <module>
from typing_extensions import Self
ModuleNotFoundError: No module named 'typing_extensions'
The text was updated successfully, but these errors were encountered:
On python versions that do not provide
typing.Self
(i.e., python <= 3.10),schwifty
falls back to usingtyping_extensions
. However, it does not specifytyping-extensions
as a requirement, and consequently user installingschwifty
in a clean virtual environment will end up with defunct version. For example, on linux:The text was updated successfully, but these errors were encountered: