From ae42bec1c3bc9a8fedd21d9eb9bc77983decb74e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Jedlicska?= Date: Wed, 15 Feb 2023 19:21:48 +0100 Subject: [PATCH] style(formatting): rerun formatting --- src/specklepy/objects/base.py | 2 +- tests/unit/test_type_validation.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/specklepy/objects/base.py b/src/specklepy/objects/base.py index ce5eab0..a4b0988 100644 --- a/src/specklepy/objects/base.py +++ b/src/specklepy/objects/base.py @@ -220,7 +220,7 @@ def _validate_type(t: Optional[type], value: Any) -> Tuple[bool, Any]: if getattr(t, "__module__", None) == "typing": if isinstance(t, ForwardRef): return True, value - + origin = getattr(t, "__origin__") # below is what in nicer for >= py38 # origin = get_origin(t) diff --git a/tests/unit/test_type_validation.py b/tests/unit/test_type_validation.py index 55e1909..1980ca2 100644 --- a/tests/unit/test_type_validation.py +++ b/tests/unit/test_type_validation.py @@ -106,7 +106,7 @@ fake_bases = [FakeBase("foo"), FakeBase("bar")] True, fake_bases, ), - (List["int"], [2, 3, 4], True, [2, 3, 4]) + (List["int"], [2, 3, 4], True, [2, 3, 4]), ], ) def test_validate_type(