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 312876d commit 747a687Copy full SHA for 747a687
openapi_pydantic/compat.py
@@ -5,7 +5,7 @@
5
from pydantic.version import VERSION as PYDANTIC_VERSION
6
7
PYDANTIC_MAJOR_VERSION = int(PYDANTIC_VERSION.split(".", 1)[0])
8
-PYDANTIC_V2 = int(PYDANTIC_MAJOR_VERSION) >= 2
+PYDANTIC_V2 = PYDANTIC_MAJOR_VERSION >= 2
9
10
if TYPE_CHECKING:
11
# Provide stubs for either version of Pydantic
0 commit comments