ApeWorX / ethpm-types

Implementation of EIP-2678
Apache License 2.0
14 stars 8 forks source link

Cannot generate schema for PackageManifest [APE-1263] #83

Closed Ninjagod1251 closed 1 year ago

Ninjagod1251 commented 1 year ago

Environment information

If ape is installed:

$ ape --version
# ...copy and paste result of above command here...

$ ape plugins list
# ...copy and paste result of above command here...

What went wrong?

Please include information like:

TypeError                                 Traceback (most recent call last)
Cell In[3], line 1
----> 1 PackageManifest.schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/main.py:664, in pydantic.main.BaseModel.schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:188, in pydantic.schema.model_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:582, in pydantic.schema.model_process_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:623, in pydantic.schema.model_type_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:256, in pydantic.schema.field_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:481, in pydantic.schema.field_type_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:930, in pydantic.schema.field_singleton_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:582, in pydantic.schema.model_process_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:623, in pydantic.schema.model_type_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:256, in pydantic.schema.field_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:463, in pydantic.schema.field_type_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:853, in pydantic.schema.field_singleton_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:702, in pydantic.schema.field_singleton_sub_fields_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:528, in pydantic.schema.field_type_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:853, in pydantic.schema.field_singleton_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:748, in pydantic.schema.field_singleton_sub_fields_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:528, in pydantic.schema.field_type_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:930, in pydantic.schema.field_singleton_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:582, in pydantic.schema.model_process_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:623, in pydantic.schema.model_type_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:256, in pydantic.schema.field_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:528, in pydantic.schema.field_type_schema()

File ~/virtualenvs/vyper/lib/python3.8/site-packages/pydantic/schema.py:927, in pydantic.schema.field_singleton_schema()

File /usr/lib/python3.8/abc.py:102, in ABCMeta.__subclasscheck__(cls, subclass)
    100 def __subclasscheck__(cls, subclass):
    101     """Override for issubclass(subclass, cls)."""
--> 102     return _abc_subclasscheck(cls, subclass)

How can it be fixed?

Fill this in if you have ideas on how the bug could be fixed.