Open kasium opened 2 years ago
Facing same issue
@compiles(Utcnow, 'postgresql')
def pg_utcnow(element, compiler, **kw):
return "TIMEZONE('utc', CURRENT_TIMESTAMP)"
@compiles(Utcnow, 'mssql')
def ms_utcnow(element, compiler, **kw):
return 'GETUTCDATE()'
Describe the bug The compile decorator is not fully typed. Therefore mypy complains when using it
Expected behavior Mypy doesn't complain
To Reproduce Use compile as a decorator
Error
Versions.
I'm happy to give a PR a try