Closed AndreRicardo-Zoetis closed 1 year ago
please use a version with 3.10.x I set the version of my package to the matched Python version. For your case please use 3.10.7
pip install strongtyping==3.10.7
Thank you for your reply @FelixTheC.
Out of curiosity, if that is the case why isn't the python_requires
also pinned to the python version?
https://github.com/FelixTheC/strongtyping/blob/20ebb17cdf55ec8b00066c67ae87a929134a92f5/setup.py#L34
good point :D I should really adjust it in the near future.
Thanks!
For my benefit, could you also help me understand why isn't strongtyping importing as
from __future__ import annotations # for Python 3.7-3.9
from typing_extensions import NotRequired, TypedDict # for Python <3.11 with (Not)Required
As documented in PEP 655 usage?
I only use from future imports for developing only. I think a library which is not marked as Beta or similar shouldn't do this. There is a official extension for NotRequired which is supported in the 3.10.7 version.
Describe the bug
I'm aware of issue https://github.com/FelixTheC/strongtyping/issues/108 but cannot see how is fixed in 3.11.1.
The setup.py only states
python_requires=">=3.7"
, so I'm not sure what I'm doing wrong?Python Version used Python 3.10.4
Package Version used strongtyping 3.11.1
Addon in use strongtyping_modules [no]
To Reproduce Steps to reproduce the behavior:
Results in import error
Expected behavior
Did not expect an import Error.
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.