mirror of https://github.com/tiangolo/fastapi.git
📝 Simplify intro to Python Types, all currently supported Python versions include type hints 🎉 (#2085)
This commit is contained in:
parent
f931dd0717
commit
13d9de4a49
|
|
@ -1,8 +1,8 @@
|
|||
# Python Types Intro
|
||||
|
||||
**Python 3.6+** has support for optional "type hints".
|
||||
Python has support for optional "type hints".
|
||||
|
||||
These **"type hints"** are a new syntax (since Python 3.6+) that allow declaring the <abbr title="for example: str, int, float, bool">type</abbr> of a variable.
|
||||
These **"type hints"** are a special syntax that allow declaring the <abbr title="for example: str, int, float, bool">type</abbr> of a variable.
|
||||
|
||||
By declaring types for your variables, editors and tools can give you better support.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue