The package currently requires pydantic-1. Please add support for pydantic-2. FWICS it would require some code changes:
ImportError while loading conftest '/tmp/wtfis/tests/conftest.py'.
tests/conftest.py:8: in <module>
from wtfis.models.greynoise import GreynoiseIp
wtfis/models/greynoise.py:18: in <module>
class GreynoiseIpMap(BaseModel):
.venv/lib/python3.11/site-packages/pydantic/_internal/_model_construction.py:95: in __new__
private_attributes = inspect_namespace(
.venv/lib/python3.11/site-packages/pydantic/_internal/_model_construction.py:279: in inspect_namespace
raise TypeError("To define root models, use `pydantic.RootModel` rather than a field called '__root__'")
E TypeError: To define root models, use `pydantic.RootModel` rather than a field called '__root__'
The package currently requires pydantic-1. Please add support for pydantic-2. FWICS it would require some code changes: