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

Type Comment for the Function decorator is not recognized #972

Closed
Thirumalai-Shaktivel opened this issue Aug 15, 2022 · 0 comments · Fixed by #979
Closed

Type Comment for the Function decorator is not recognized #972

Thirumalai-Shaktivel opened this issue Aug 15, 2022 · 0 comments · Fixed by #979

Comments

@Thirumalai-Shaktivel
Copy link
Collaborator

Example:

@dispatch(AccumulationBounds, Basic) # type: ignore # noqa:F811
def t(): ...

Error:

syntax error: Token '# type: ignore # noqa:F811' (of type 'type_comment') is unexpected here
 --> examples/expr2.py:9:38
  |
9 | @dispatch(AccumulationBounds, Basic) # type: ignore # noqa:F811
  |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^ 
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 a pull request may close this issue.

1 participant