Skip to content

Commit 747a687

Browse files
committed
no need for int(int(x))
1 parent 312876d commit 747a687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi_pydantic/compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from pydantic.version import VERSION as PYDANTIC_VERSION
66

77
PYDANTIC_MAJOR_VERSION = int(PYDANTIC_VERSION.split(".", 1)[0])
8-
PYDANTIC_V2 = int(PYDANTIC_MAJOR_VERSION) >= 2
8+
PYDANTIC_V2 = PYDANTIC_MAJOR_VERSION >= 2
99

1010
if TYPE_CHECKING:
1111
# Provide stubs for either version of Pydantic

0 commit comments

Comments
 (0)