Bisk1 commented on code in PR #33746:
URL: https://github.com/apache/airflow/pull/33746#discussion_r1307127995
##########
airflow/utils/state.py:
##########
@@ -195,12 +190,7 @@ def color_fg(cls, state):
A list of states indicating that a task or dag is a success state.
"""
- terminating_states = frozenset([TaskInstanceState.SHUTDOWN,
TaskInstanceState.RESTARTING])
- """
- A list of states indicating that a task has been terminated.
- """
-
- adoptable_states = frozenset(
+ adoptable_states: frozenset[TaskInstanceState] = frozenset(
Review Comment:
it says `utils/state.py:201: note: Revealed type is
"builtins.frozenset[airflow.utils.state.TaskInstanceState]"` both with and
without this annotation so removed it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]