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

Position-only separator in first parameter should be flagged as error #1064

Closed
erictraut opened this issue Sep 26, 2020 · 1 comment
Closed
Labels
addressed in next version Issue is fixed and will appear in next published version enhancement request New feature or request

Comments

@erictraut
Copy link
Collaborator

def foo(/, a):
   pass

The Python interpreter emits a syntax error in this case. Pyright should therefore report an error.

@erictraut erictraut added the enhancement request New feature or request label Sep 26, 2020
@erictraut erictraut added the addressed in next version Issue is fixed and will appear in next published version label Sep 26, 2020
@erictraut
Copy link
Collaborator Author

This is addressed in Pyright 1.1.75, which I just published. It will also be included in the next version of Pylance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addressed in next version Issue is fixed and will appear in next published version enhancement request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant