Skip to content

Commit 8acd029

Browse files
authored
fix: to fix type annotation for self.dialect in UniqueConstraintErrorHandler (#54558)
1 parent f23b7c6 commit 8acd029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airflow-core/src/airflow/api_fastapi/common/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class _UniqueConstraintErrorHandler(BaseErrorHandler[IntegrityError]):
6363

6464
def __init__(self):
6565
super().__init__(IntegrityError)
66-
self.dialect: _DatabaseDialect.value | None = None
66+
self.dialect: _DatabaseDialect | None = None
6767

6868
def exception_handler(self, request: Request, exc: IntegrityError):
6969
"""Handle IntegrityError exception."""

0 commit comments

Comments
 (0)