Skip to content

Commit 74c03c6

Browse files
committed
Remove more python 3.7 workarounds
1 parent dafb24c commit 74c03c6

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

src/rez/plugin_managers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from rez.utils.logging_ import print_debug, print_warning
1515
from rez.exceptions import RezPluginError
1616
from zipimport import zipimporter
17-
from typing import overload, Any, TypeVar, TYPE_CHECKING
17+
from typing import overload, Any, Literal, TypeVar, TYPE_CHECKING
1818
import pkgutil
1919
import os.path
2020
import sys
@@ -26,7 +26,6 @@
2626
from rez.vendor.importlib_metadata import entry_points
2727

2828
if TYPE_CHECKING:
29-
from typing import Literal # not available in typing module until 3.8
3029
from rez.shells import Shell
3130
from rez.release_vcs import ReleaseVCS
3231
from rez.release_hook import ReleaseHook

src/rezplugins/shell/sh.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717
from rez.rex import EscapedString
1818
from shlex import quote
1919

20-
from typing import TYPE_CHECKING
21-
22-
if TYPE_CHECKING:
23-
from typing import Literal
20+
from typing import Literal
2421

2522

2623
class SH(UnixShell):

src/rezplugins/shell/zsh.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
from rez import module_root_path
1717
from shlex import quote
1818

19-
from typing import TYPE_CHECKING
20-
21-
if TYPE_CHECKING:
22-
from typing import Literal
19+
from typing import Literal
2320

2421

2522
class Zsh(SH):

0 commit comments

Comments
 (0)