fix CI and lint

This commit is contained in:
sneakers-the-rat 2024-05-09 00:45:00 -07:00
parent 57b25034d6
commit f302c7a68b
Signed by untrusted user who does not match committer: jonny
GPG key ID: 6DCB96EF1E4D232D
2 changed files with 7 additions and 2 deletions

View file

@ -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]

View file

@ -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