Skip to content

Commit 0f03ff2

Browse files
committed
Update some typing
1 parent 743e48a commit 0f03ff2

File tree

5 files changed

+618
-545
lines changed

5 files changed

+618
-545
lines changed

scripts/requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ flake8-bugbear
1414
flake8-class-attributes-order
1515
flake8-comprehensions>=3.8 # flake8 v5 support
1616
flake8-datetimez
17+
flake8-noqa>=1.3.0 # flake8 v6 support
1718
flake8-pyi>=22.11.0 # flake8 v6 support
1819
flake8-simplify
1920
pep8-naming

src/capture_method/WindowsGraphicsCaptureMethod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def close(self, autosplit: AutoSplit):
6565
# OSError: The application called an interface that was marshalled for a different thread
6666
# This still seems to close the session and prevent the following hard crash in LiveSplit
6767
# pylint: disable=line-too-long
68-
# "AutoSplit.exe <process started at 00:05:37.020 has terminated with 0xc0000409 (EXCEPTION_STACK_BUFFER_OVERRUN)>" # noqa E501
68+
# "AutoSplit.exe <process started at 00:05:37.020 has terminated with 0xc0000409 (EXCEPTION_STACK_BUFFER_OVERRUN)>" # noqa: E501
6969
pass
7070
self.session = None
7171

src/capture_method/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ def get_input_device_resolution(index: int):
211211

212212

213213
async def get_all_video_capture_devices() -> list[CameraInfo]:
214-
named_video_inputs = FilterGraph().get_input_devices()
214+
# TODO: Fix partially Unknown list upstream
215+
named_video_inputs: list[str] = FilterGraph().get_input_devices()
215216

216217
async def get_camera_info(index: int, device_name: str):
217218
backend = ""

src/menu_bar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from capture_method import (
1515
CAPTURE_METHODS, CameraInfo, CaptureMethodEnum, change_capture_method, get_all_video_capture_devices,
1616
)
17-
from gen import about, design, resources_rc, settings as settings_ui, update_checker # noqa F401
17+
from gen import about, design, resources_rc, settings as settings_ui, update_checker # noqa: F401
1818
from hotkeys import HOTKEYS, Hotkey, set_hotkey
1919
from utils import (
2020
AUTOSPLIT_VERSION, FIRST_WIN_11_BUILD, GITHUB_REPOSITORY, WINDOWS_BUILD_NUMBER, decimal, fire_and_forget,

0 commit comments

Comments
 (0)