style(formatting): rerun formatting
This commit is contained in:
Родитель
ea7baf8eb5
Коммит
ae42bec1c3
|
@ -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)
|
||||
|
|
|
@ -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(
|
||||
|
|
Загрузка…
Ссылка в новой задаче