-
-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mypy error on python 3.8 on version generation #926
Comments
Just a note: I've tested this on pythons 3.8, 3.10, 3.11 and 3.12-rc. Only failing on 3.8 |
seems like i made a mistake when testing the change, whats he mypy version |
Thanks for your quick reply @RonnyPfannschmidt # mypy --version
mypy 1.5.1 (compiled: yes)
# python3 --version
Python 3.8.18
# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
[...] |
it seems like this happens only on mypy on python 3.8 itself, im going to replace it with a typing.Tuple for now |
Thank you! Going to test ASAP |
Forgot to confirm, but the fix worked for me! |
@ralequi thanks for getting back 👍 |
The current setuptools_scm generates an (mypy) invalid version.py for python 3.8.
The current version generates something like:
While previous version did something like:
The new added typing is invalid in python 3.8's mypy:
The commit defc575 introduced the bug (Jul 12 2023) by @RonnyPfannschmidt
and references issue #527
This is breaking many of my pipelines, and probably soon many other people's.
Please, consider a more flex typing while python 3.8 hasn't reached it's EOL.
Thank you, this package is great and helps a lot on my python's packages!
The text was updated successfully, but these errors were encountered: