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
{{ message }}
Repository navigation
Pyright CI test doesn't recognize requires_python in METADATA.toml #14025
The test pyright: Run test cases can fail for older Python versions due to using newer features. For example, in #13968 (comment) I typed a class with a dataclass decorator using kwargs added to Python 3.10. Despite setting requires_python = ">=3.10" in stubs/networkx/METADATA.toml
One possible solution with the current setup, is to collect stubs whose requires_pythondon't match the current Python version, and pass them to pyright's file exclusion.
Similarly, if running tests/runtests.py on a third-party stub, requires_python should be taken into account rather than only relying on _PYTHON_VERSION.
Edit: #14051
changed the title [-]Pyrigth CI test doesn't recognize `requires_python` in `METADATA.toml`[/-][+]Pyright CI test doesn't recognize `requires_python` in `METADATA.toml`[/+]on May 12, 2025
Activity
[-]Pyrigth CI test doesn't recognize `requires_python` in `METADATA.toml`[/-][+]Pyright CI test doesn't recognize `requires_python` in `METADATA.toml`[/+]srittau commentedon May 13, 2025
This is basically a duplicate of #10722. Closing this here as there is already some discussion there.