We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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:
Assign
type_comment
a = 42 # type int
Example for a type annotation on variable (this is parsed as an AnnAssign with annotation:
AnnAssign
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):
returns
FunctionDef
arg
def bar(x: int) -> int: ...
The content you are editing has changed. Please copy your edits and refresh the page.
type_comments
.pyi
Functiondef
The text was updated successfully, but these errors were encountered:
lshala
Successfully merging a pull request may close this issue.
We should support all the possibilities to annotate types in python.
Example for a type comment (This is parsed as an
Assign
withtype_comment
:Example for a type annotation on variable (this is parsed as an
AnnAssign
withannotation
:Example for type annotation on function (this is parsed as
returns
on theFunctionDef
as well asannotation
on thearg
):Tasks
type_comments
#1649.pyi
) #1640AnnAssign
#1656The text was updated successfully, but these errors were encountered: