From 5c749de64cee37abbcd7eb344af03e89d51ae20f Mon Sep 17 00:00:00 2001 From: Alex Liang <35860220+alex-liang3@users.noreply.github.com> Date: Thu, 12 Dec 2024 18:08:35 +0100 Subject: [PATCH] chore: make python3.8-compatible (#2) chore: use python 3.8-style typing --- isort/output.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/isort/output.py b/isort/output.py index 4a5a32b3..eb083621 100644 --- a/isort/output.py +++ b/isort/output.py @@ -151,9 +151,9 @@ def sorted_imports( section_output.append(section_comment_end) if section in config.separate_packages: - group_keys: set[str] = set() - comments_above: list[str] = [] - processed_section_output: list[str] = [] + group_keys: Set[str] = set() + comments_above: List[str] = [] + processed_section_output: List[str] = [] for section_line in section_output: if section_line.startswith("#"): comments_above.append(section_line)