Skip to content

Commit

Permalink
fix: remove print
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Jul 29, 2023
1 parent acad714 commit be904c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/xsdata_pydantic_basemodel/compat.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from contextlib import suppress
from typing import Any, Callable, Dict, Generic, List, Optional, Tuple, Type, TypeVar

try:
Expand Down Expand Up @@ -149,7 +150,5 @@ def get_core_schema(*args: Any) -> cs.PlainValidatorFunctionSchema:

for type_, val in _validators.items():
get_schema = _make_get_core_schema(val[0])
try:
with suppress(TypeError):
type_.__get_pydantic_core_schema__ = get_schema # type: ignore
except TypeError as e:
print(e)

0 comments on commit be904c9

Please sign in to comment.