Hi,
Databases return Record class instance, and we can get column values by simply specifying column name
record = db.fetch_one(query=query, values=values)
print(record.id)
mypy gives the following error: Mypy: "Record" has no attribute "id" [attr-defined]
Is there a way to set up mypy to work correctly with this use case?
Hi,
Databases return
Recordclass instance, and we can get column values by simply specifying column namemypy gives the following error:
Mypy: "Record" has no attribute "id" [attr-defined]Is there a way to set up mypy to work correctly with this use case?