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-484: Support all python type hints #1655

Closed
4 tasks done
oxisto opened this issue Aug 14, 2024 · 0 comments · Fixed by #1701
Closed
4 tasks done

PEP-484: Support all python type hints #1655

oxisto opened this issue Aug 14, 2024 · 0 comments · Fixed by #1701
Assignees
Labels

Comments

@oxisto
Copy link
Member

oxisto commented Aug 14, 2024

We should support all the possibilities to annotate types in python.

Example for a type comment (This is parsed as an Assign with type_comment:

a = 42 # type int

Example for a type annotation on variable (this is parsed as an AnnAssign with annotation:

a: int = 42

Example for type annotation on function (this is parsed as returns on the FunctionDef as well as annotation on the arg):

def bar(x: int) -> int: ...

Tasks

  1. python
  2. python
  3. python
@oxisto oxisto added the python label Aug 14, 2024
@lshala lshala self-assigned this Sep 18, 2024
@lshala lshala linked a pull request Sep 20, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants