Closed mdipietrowf closed 1 year ago
Hi @mdipietrowf
Thanks for noticing this issue. I think we should create a new class that inherits from record.Model, AvroModel
and redefine the validate
that will use the super().validate()
in order to solve the problem and the end users will need to only inherits from one class (similar to what we do with BaseModel + AvroModel = AvroBaseModel
for pydantic
integration.
The faust integration has been updated so now you should not have any mypy
errors
Describe the bug When running mypy on avro models after updating to 0.38.0, the following errors are displayed:
To Reproduce Run mypy v1.1.1 on a file containing the
UserAdvance
class as in the example https://marcosschroh.github.io/dataclasses-avroschema/faust_records/using
faust-streaming 0.10.8
Expected behavior No mypy errors from creating example model.