Skip to content

Commit

Permalink
Hacky way to get Python3.8 compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom committed Feb 22, 2024
1 parent f5d1384 commit 87b58b4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modal/_container_entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@
from .partial_function import _find_callables_for_obj, _PartialFunctionFlags

if TYPE_CHECKING:
from types import ModuleType, TracebackType
from types import ModuleType

try:
from types import TracebackType
except ImportError:
# Python 3.8
TracebackType = Any

ExceptionInfo = Tuple[Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]]

Expand Down

0 comments on commit 87b58b4

Please sign in to comment.