Skip to content

Commit cd9bcb3

Browse files
committed
Fix data type in callback model
1 parent 5bf49a5 commit cd9bcb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airflow-core/src/airflow/models/callback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class Callback(Base):
113113
fetch_method: Mapped[str] = mapped_column(String(20), nullable=False)
114114

115115
# Used by subclasses to store information about how to run the callback
116-
data: Mapped[dict] = mapped_column(ExtendedJSON)
116+
data: Mapped[dict | None] = mapped_column(ExtendedJSON, nullable=True)
117117

118118
# State of the Callback of type: CallbackState. Can be null for instances of DagProcessorCallback.
119119
state: Mapped[str | None] = mapped_column(String(10))

0 commit comments

Comments
 (0)