mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-06 02:26:46 +00:00
✏ Fix typo in docs/en/docs/python-types.md (#5007)
This commit is contained in:
parent
8fe80e81e1
commit
b862639ce9
1 changed files with 1 additions and 1 deletions
|
|
@ -267,7 +267,7 @@ You can declare that a variable can be any of **several types**, for example, an
|
|||
|
||||
In Python 3.6 and above (including Python 3.10) you can use the `Union` type from `typing` and put inside the square brackets the possible types to accept.
|
||||
|
||||
In Python 3.10 there's also an **alternative syntax** were you can put the possible types separated by a <abbr title='also called "bitwise or operator", but that meaning is not relevant here'>vertical bar (`|`)</abbr>.
|
||||
In Python 3.10 there's also an **alternative syntax** where you can put the possible types separated by a <abbr title='also called "bitwise or operator", but that meaning is not relevant here'>vertical bar (`|`)</abbr>.
|
||||
|
||||
=== "Python 3.6 and above"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue