josh-fell commented on a change in pull request #17421:
URL: https://github.com/apache/airflow/pull/17421#discussion_r691294438
##########
File path: airflow/operators/python.py
##########
@@ -26,6 +26,11 @@
from textwrap import dedent
from typing import Any, Callable, Dict, Iterable, List, Optional, Union
+try:
+ from typing import Literal
+except ImportError:
+ from typing_extensions import Literal
Review comment:
Very cool. Thanks for the pro tip!
--
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]