Skip to content

Commit 3c223f6

Browse files
Fix Python 3.7 compatibility in util.py (#1073)
Replace built-in generic type hints (list, tuple) with typing module equivalents (List, Tuple) to support Python 3.7-3.8.
1 parent a449564 commit 3c223f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/tank/commands/util.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
Utility methods that are specific to tank commands
1313
"""
1414

15+
from typing import List, Tuple
16+
1517
from . import constants
1618

1719

18-
def should_use_legacy_yaml_parser(args: list[str]) -> tuple[bool, list[str]]:
20+
def should_use_legacy_yaml_parser(args: List[str]) -> Tuple[bool, List[str]]:
1921
"""
2022
Given a set of command line args, determine if the
2123
legacy yaml parser should be used.

0 commit comments

Comments
 (0)