-
-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
017e168
commit 2103eab
Showing
5 changed files
with
14 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
import pydantic | ||
|
||
if pydantic.VERSION[0] == "2": | ||
from pydantic._internal._utils import smart_deepcopy | ||
from pydantic._internal._utils import lenient_issubclass | ||
from typing_extensions import get_args, get_origin | ||
from pydantic._internal._typing_extra import is_new_type | ||
|
||
from pydantic._internal._utils import lenient_issubclass, smart_deepcopy | ||
|
||
def new_type_supertype(type_): | ||
return type_.__supertype__ | ||
|
||
else: | ||
from pydantic.utils import smart_deepcopy | ||
from pydantic.utils import lenient_issubclass | ||
from pydantic.typing import get_args, get_origin, is_new_type, new_type_supertype | ||
from pydantic.utils import lenient_issubclass, smart_deepcopy | ||
|
||
__all__ = ["smart_deepcopy", "lenient_issubclass"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
import pydantic | ||
|
||
if pydantic.VERSION[0] == "2": | ||
from pydantic._internal._utils import smart_deepcopy | ||
from pydantic._internal._utils import lenient_issubclass | ||
from typing_extensions import get_args, get_origin | ||
from pydantic._internal._typing_extra import is_new_type | ||
|
||
from pydantic._internal._utils import lenient_issubclass, smart_deepcopy | ||
|
||
def new_type_supertype(type_): | ||
return type_.__supertype__ | ||
|
||
else: | ||
from pydantic.utils import smart_deepcopy | ||
from pydantic.utils import lenient_issubclass | ||
from pydantic.typing import get_args, get_origin, is_new_type, new_type_supertype | ||
from pydantic.utils import lenient_issubclass, smart_deepcopy | ||
|
||
__all__ = ["smart_deepcopy", "lenient_issubclass"] |