bump ruff and do fixes (#2375)

This commit is contained in:
Hayden
2023-05-05 14:43:23 -08:00
committed by GitHub
parent f27bb00dc3
commit 23786c1f5e
8 changed files with 26 additions and 30 deletions

View File

@@ -136,7 +136,7 @@ class QueryFilter:
except ValueError as e:
raise ValueError(f"invalid query string: invalid UUID '{component.value}'") from e
if isinstance(attr.type, (sqltypes.Date, sqltypes.DateTime)):
if isinstance(attr.type, sqltypes.Date | sqltypes.DateTime):
# TODO: add support for IS NULL and IS NOT NULL
# in the meantime, this will work for the specific usecase of non-null dates/datetimes
if value in ["none", "null"] and component.relational_operator == RelationalOperator.NOTEQ: