This is not causing any issues in running of my programs but is minor inconvenience, I am not sure what should be the fix.
This is pyright on emacs.


This is mypy:

code:
def ensure_tables(db: Database):
if "users" not in db.table_names():
db["users"].create({
"id": int,
"username": str,
"access_token": str,
"refresh_token": str,
"expires_in": int,
"expires_at": int,
"last_sync": datetime.datetime
}, pk="id")
Any suggestions on what should be the fix