Skip to content

Commit

Permalink
Add type annotation to global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed May 12, 2023
1 parent 7b540be commit 7184259
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fastapi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
from .routing import APIRoute

# Cache for `create_cloned_field`
_CLONED_TYPES_CACHE = WeakKeyDictionary()
_CLONED_TYPES_CACHE: MutableMapping[
Type[BaseModel], Type[BaseModel]
] = WeakKeyDictionary()


def is_body_allowed_for_status_code(status_code: Union[int, str, None]) -> bool:
Expand Down

0 comments on commit 7184259

Please sign in to comment.