databases
databases copied to clipboard
mypy's "has no attribute" error
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?