mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-11-10 00:34:29 +00:00
fix CI and lint
This commit is contained in:
parent
57b25034d6
commit
f302c7a68b
2 changed files with 7 additions and 2 deletions
|
@ -157,7 +157,6 @@ class Interface(ABC, Generic[T]):
|
||||||
msg += "\n".join([f" - {i}" for i in matches])
|
msg += "\n".join([f" - {i}" for i in matches])
|
||||||
raise ValueError(msg)
|
raise ValueError(msg)
|
||||||
elif len(matches) == 0:
|
elif len(matches) == 0:
|
||||||
pdb.set_trace()
|
|
||||||
raise ValueError(f"No matching interfaces found for input {array}")
|
raise ValueError(f"No matching interfaces found for input {array}")
|
||||||
else:
|
else:
|
||||||
return matches[0]
|
return matches[0]
|
||||||
|
|
|
@ -1,7 +1,13 @@
|
||||||
import pdb
|
import pdb
|
||||||
|
import sys
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from typing import Any, Tuple, Union, Type, TypeAlias
|
from typing import Any, Tuple, Union, Type
|
||||||
|
|
||||||
|
if sys.version_info.minor < 11:
|
||||||
|
from typing import TypeAlias
|
||||||
|
else:
|
||||||
|
from typing_extensions import TypeAlias
|
||||||
from pydantic import BaseModel, computed_field, ConfigDict
|
from pydantic import BaseModel, computed_field, ConfigDict
|
||||||
from numpydantic import NDArray, Shape
|
from numpydantic import NDArray, Shape
|
||||||
from numpydantic.ndarray import NDArrayMeta
|
from numpydantic.ndarray import NDArrayMeta
|
||||||
|
|
Loading…
Reference in a new issue