Skip to content

Commit

Permalink
Remove unnecessary Python version check (#1305)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #1305

As title. The check is no longer needed after we bumped min Python version to 3.8.

Reviewed By: aelavender

Differential Revision: D59181986

fbshipit-source-id: 0e58ab9b002ddcb6fe8ecabe16f0edaa0f4fa67f
  • Loading branch information
yucu authored and facebook-github-bot committed Jul 3, 2024
1 parent c33e619 commit ef3ba2d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions captum/_utils/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@
from torch.nn import Module

if TYPE_CHECKING:
import sys

if sys.version_info >= (3, 8):
from typing import Literal # noqa: F401
else:
from typing_extensions import Literal # noqa: F401
from typing import Literal
else:
Literal = {True: bool, False: bool, (True, False): bool}

Expand Down

0 comments on commit ef3ba2d

Please sign in to comment.