Skip to content

Commit ee0300e

Browse files
committed
fix for old python 3.9
1 parent 438ac9e commit ee0300e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_atomic/test_current_atomic_operation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import Dict, Literal
3+
from typing import Dict, Literal, Optional
44

55
import pytest
66
from fastapi import Body, Depends, FastAPI, HTTPException, status
@@ -74,7 +74,7 @@ def get_validated_attribute_from_body(data: dict):
7474

7575

7676
async def get_custom_name_from_body_universal(
77-
data: dict | None = Body(None, embed=True),
77+
data: Optional[dict] = Body(None, embed=True),
7878
) -> str:
7979
atomic_operation = current_atomic_operation.get(missing)
8080
if atomic_operation is missing:

0 commit comments

Comments
 (0)