Skip to content

Commit 0540153

Browse files
committed
python -m ruff check --fix .
1 parent 2fed954 commit 0540153

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

python_files/create_conda.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
import pathlib
77
import subprocess
88
import sys
9-
from typing import Optional, Sequence, Union
9+
from collections.abc import Sequence
10+
from typing import Optional, Union
1011

1112
CONDA_ENV_NAME = ".conda"
1213
CWD = pathlib.Path.cwd()

python_files/create_microvenv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
import pathlib
77
import subprocess
88
import sys
9-
from typing import Optional, Sequence
9+
from collections.abc import Sequence
10+
from typing import Optional
1011

1112
VENV_NAME = ".venv"
1213
LIB_ROOT = pathlib.Path(__file__).parent / "lib" / "python"

python_files/create_venv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
import subprocess
1010
import sys
1111
import urllib.request as url_lib
12-
from typing import List, Optional, Sequence, Union
12+
from collections.abc import Sequence
13+
from typing import List, Optional, Union
1314

1415
VENV_NAME = ".venv"
1516
CWD = pathlib.Path.cwd()

python_files/installed_check.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
import os
77
import pathlib
88
import sys
9-
from typing import Dict, List, Optional, Sequence, Tuple, Union
9+
from collections.abc import Sequence
10+
from typing import Dict, List, Optional, Tuple, Union
1011

1112
LIB_ROOT = pathlib.Path(__file__).parent / "lib" / "python"
1213
sys.path.insert(0, os.fspath(LIB_ROOT))

python_files/normalizeSelection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import re
77
import sys
88
import textwrap
9-
from typing import Iterable
9+
from collections.abc import Iterable
1010

1111
attach_bracket_paste = sys.version_info >= (3, 13)
1212

python_files/vscode_pytest/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
import pathlib
1111
import sys
1212
import traceback
13+
from collections.abc import Generator
1314
from typing import (
1415
TYPE_CHECKING,
1516
Any,
1617
Dict,
17-
Generator,
1818
Literal,
1919
TypedDict,
2020
)

0 commit comments

Comments
 (0)