mirror of
https://github.com/fastapi/fastapi.git
synced 2026-05-03 13:13:54 -04:00
📝 Update Python Types docs, add missing 3.6 / 3.9 example (#4434)
This commit is contained in:
committed by
GitHub
parent
b8ae84d460
commit
7fe79441c1
@@ -1,4 +1,7 @@
|
||||
def process_items(prices: dict[str, float]):
|
||||
from typing import Dict
|
||||
|
||||
|
||||
def process_items(prices: Dict[str, float]):
|
||||
for item_name, item_price in prices.items():
|
||||
print(item_name)
|
||||
print(item_price)
|
||||
|
||||
4
docs_src/python_types/tutorial008_py39.py
Normal file
4
docs_src/python_types/tutorial008_py39.py
Normal file
@@ -0,0 +1,4 @@
|
||||
def process_items(prices: dict[str, float]):
|
||||
for item_name, item_price in prices.items():
|
||||
print(item_name)
|
||||
print(item_price)
|
||||
Reference in New Issue
Block a user