Skip to content

Always use the default Python 3 version to parse stub files #3000

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

Merged
merged 1 commit into from
Mar 14, 2017

Conversation

ddfisher
Copy link
Collaborator

No description provided.

@gvanrossum gvanrossum merged commit f3d55ff into master Mar 14, 2017
@gvanrossum gvanrossum deleted the stub-python-version branch March 14, 2017 22:01
@gvanrossum
Copy link
Member

gvanrossum commented Mar 14, 2017

Whee! Now we can fix python/typeshed#984. (UPDATE: It's actually more complicated. See that issue.)

hauntsaninja added a commit to hauntsaninja/mypy that referenced this pull request Aug 24, 2022
Fixes python#13499

Today this code reads like "stubs should all target 3.7" and this
is indeed how typeshed operates. But authors of pyi other than typeshed
should probably be allowed to choose what Python version they're
targetting.

This code goes back to python#3000 back in the typed_ast days, when this
allowed stubs to use much newer syntax features than the base Python
version, so in some ways this is in the spirit of the original code.
hauntsaninja added a commit that referenced this pull request Aug 24, 2022
Fixes #13499

Today this code reads like "stubs should all target 3.7" and this
is indeed how typeshed operates. But authors of pyi other than typeshed
should probably be allowed to choose what Python version they're
targetting. Since typeshed runs checks against 3.7, this should not
cause testing regressions for typeshed.

This code goes back to #3000 back in the typed_ast days, when this
allowed stubs to use much newer syntax features than the base Python
version, so in some ways this is in the spirit of the original code.
jhance pushed a commit that referenced this pull request Sep 9, 2022
Fixes #13499

Today this code reads like "stubs should all target 3.7" and this
is indeed how typeshed operates. But authors of pyi other than typeshed
should probably be allowed to choose what Python version they're
targetting. Since typeshed runs checks against 3.7, this should not
cause testing regressions for typeshed.

This code goes back to #3000 back in the typed_ast days, when this
allowed stubs to use much newer syntax features than the base Python
version, so in some ways this is in the spirit of the original code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants