Skip to content

Commit 8912d40

Browse files
committed
Fix mypy
1 parent 57be463 commit 8912d40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flask_openapi3/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
try:
1010
from types import UnionType # Python 3.10+
1111
except ImportError:
12-
UnionType = type(Union)
12+
UnionType = type(Union) # type: ignore
1313

1414
from flask import request, current_app, abort
1515
from pydantic import ValidationError, BaseModel, RootModel

flask_openapi3/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
try:
1414
from types import UnionType # Python 3.10+
1515
except ImportError:
16-
UnionType = type(Union)
16+
UnionType = type(Union) # type: ignore
1717

1818
from flask import make_response, current_app
1919
from flask.wrappers import Response as FlaskResponse

0 commit comments

Comments
 (0)