subkanthi commented on issue #19891:
URL: https://github.com/apache/airflow/issues/19891#issuecomment-999732922
Thanks, so does that mean we don't have to worry about errors in 3.8 and
just focus on 3.7.
in the case of typing/typing_extensions, 3.6 and 3.7 are the same and 3.8
behaves differently.
```
try:
# Literal, Protocol and TypedDict are only added to typing module
starting from
# python 3.8 we can safely remove this shim import after Airflow drops
# support for <3.8
from typing import Literal, Protocol, TypedDict, runtime_checkable #
type: ignore
except ImportError:
print("Import error")
from typing_extensions import Literal, Protocol, TypedDict,
runtime_checkable # type: ignore # noqa
```
--
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]