You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is primarily of interest to users of type checking. It provides a concise way to annotate callable types using an arrow syntax inspired by function headers (and the syntax used by other languages like Typescript and Kotlin).
The PEP has been discussed at length in typing-sig and python-dev.
Since there are many discussions about this, here's a quick summary with links to key threads:
In typing-sig [1][2] there is strong support for this PEP.
About 2/3 of typing-sig would have preferred complex syntax supporting named, optional, and variadic args.
We discuss this idea in some detail as "Extended Syntax" in our Rejected Alternatives section.
We've confirmed that the current proposal is forward-compatible with extended syntax.
We proposed this simpler PEP partly because opinions were mixed, but also following guidance in PEP1 to prefer breaking complex changes into focused PEPs.
Please consider PEP 677.
This is primarily of interest to users of type checking. It provides a concise way to annotate callable types using an arrow syntax inspired by function headers (and the syntax used by other languages like Typescript and Kotlin).
The PEP has been discussed at length in typing-sig and python-dev.
Since there are many discussions about this, here's a quick summary with links to key threads:
CC @pradeep90 @gvanrossum
https://www.python.org/dev/peps/pep-0677/
The text was updated successfully, but these errors were encountered: