We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee11eaa commit 312876dCopy full SHA for 312876d
openapi_pydantic/compat.py
@@ -5,11 +5,7 @@
5
from pydantic.version import VERSION as PYDANTIC_VERSION
6
7
PYDANTIC_MAJOR_VERSION = int(PYDANTIC_VERSION.split(".", 1)[0])
8
-
9
-if int(PYDANTIC_MAJOR_VERSION) >= 2:
10
- PYDANTIC_V2 = True
11
-else:
12
- PYDANTIC_V2 = False
+PYDANTIC_V2 = int(PYDANTIC_MAJOR_VERSION) >= 2
13
14
if TYPE_CHECKING:
15
# Provide stubs for either version of Pydantic
0 commit comments