Browse Source

fix Python version check

Signed-off-by: merlinz01 <[email protected]>
pull/12135/head
merlinz01 7 months ago
parent
commit
155905194b
  1. 2
      fastapi/dependencies/utils.py

2
fastapi/dependencies/utils.py

@ -672,7 +672,7 @@ async def solve_dependencies(
if PYDANTIC_V2:
if sys.hexversion >= 0x30A00000:
if sys.hexversion >= 0x30A0000:
def _allows_none(field: ModelField) -> bool:
origin = get_origin(field.type_)

Loading…
Cancel
Save