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
Support for type annotations was added in Python 3.0 but has been enhanced in minor releases. If we want to take advantage of recent enhancements while continuing to support old versions of Python, we could investigate stripping out type annotations at publish time, but only if they have no value (we should keep them if they behave like .d.ts files) - thanks @zFernand0 for this idea 🙂
The text was updated successfully, but these errors were encountered:
Thank you for raising this enhancement request.
The community has 90 days to vote on it.
If the enhancement receives at least 5 upvotes, it is added to our development backlog.
If it receives fewer votes, the issue is closed.
Python supports type hints in a similar format to TypeScript:
def func(arg: arg_type, optarg: arg_type = default) -> return_type:
They are not used at runtime but can be validated with tools like MyPy which have VS Code integration.
See here for more details: https://realpython.com/python-type-checking/
Support for type annotations was added in Python 3.0 but has been enhanced in minor releases. If we want to take advantage of recent enhancements while continuing to support old versions of Python, we could investigate stripping out type annotations at publish time, but only if they have no value (we should keep them if they behave like
.d.ts
files) - thanks @zFernand0 for this idea 🙂The text was updated successfully, but these errors were encountered: