Skip to content
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

PEP 570 (Positional-only Argument Syntax) tracker #4972

Closed
5 tasks done
srittau opened this issue Jan 25, 2021 · 10 comments
Closed
5 tasks done

PEP 570 (Positional-only Argument Syntax) tracker #4972

srittau opened this issue Jan 25, 2021 · 10 comments
Labels
project: feature tracker Tracks whether a typing feature can be used in typeshed stubs

Comments

@srittau
Copy link
Collaborator

srittau commented Jan 25, 2021

This issue is supposed to track when we can start to use Python's standard positional-only argument syntax (PEP 570) in typeshed. Support is needed in released versions of:

  • mypy (supported when running under Python 3.8+)
  • pytype
  • pyright
  • pyre
  • PyCharm
@srittau srittau added the project: feature tracker Tracks whether a typing feature can be used in typeshed stubs label Jan 25, 2021
@sproshev
Copy link
Contributor

Supported in PyCharm more than a year https://youtrack.jetbrains.com/issue/PY-35512

@layday
Copy link
Contributor

layday commented Feb 22, 2021

This appears to be supported in Pyright at least since 1.1.0 released in November 2019.

@srittau
Copy link
Collaborator Author

srittau commented Feb 2, 2022

@pradeep90 Are PEP 570-style positional arguments (i.e. def foo(arg, /): ...) supported in pyre?

@pradeep90
Copy link
Contributor

@srittau Yes, they're supported in Pyre.

@AlexWaygood
Copy link
Member

@rchen152, does google/pytype@3e228a0 mean that pytype now supports PEP 570? :)

@hauntsaninja
Copy link
Collaborator

I believe PEP 570 requires 3.8 for mypy / ast, not 3.7

@srittau
Copy link
Collaborator Author

srittau commented Feb 22, 2022

I believe PEP 570 requires 3.8 for mypy / ast, not 3.7

Fixed (without testing).

@rchen152
Copy link
Collaborator

@AlexWaygood Yes, it's supported now!

@AlexWaygood
Copy link
Member

@AlexWaygood Yes, it's supported now!

Awesome!

@srittau
Copy link
Collaborator Author

srittau commented Feb 14, 2024

PEP 570 is supported now and we have started to use it in typeshed. See #11237 for tracking the switch.

@srittau srittau closed this as completed Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project: feature tracker Tracks whether a typing feature can be used in typeshed stubs
Projects
None yet
Development

No branches or pull requests

7 participants