Skip to content

Commit 0217fe9

Browse files
committed
Fix pydantic import issue in CI.
1 parent 9f71f5a commit 0217fe9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/tap/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def enforce_reproducibility(
571571
raise ValueError(f"{no_reproducibility_message}: Uncommitted changes " f"in current args.")
572572

573573

574-
# TODO: remove this once typing_inspect.get_origin is fixed for Python 3.9 and 3.10
574+
# TODO: remove this once typing_inspect.get_origin is fixed for 3.10
575575
# https://github.com/ilevkivskyi/typing_inspect/issues/64
576576
# https://github.com/ilevkivskyi/typing_inspect/issues/65
577577
def get_origin(tp: Any) -> Any:

tests/test_to_tap_class.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ def __init__(self, a: int = 0):
569569

570570
self._assert_all_two(Foo)
571571

572+
@pytest.mark.skipif(_IS_PYDANTIC_V1 is None, reason="Pydantic not installed")
572573
def test_pydantic_model(self):
573574
class Foo(pydantic.BaseModel):
574575
a: int = 0

0 commit comments

Comments
 (0)