Skip to content

Commit

Permalink
Update some typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Mar 2, 2023
1 parent 743e48a commit 0f03ff2
Show file tree
Hide file tree
Showing 5 changed files with 618 additions and 545 deletions.
1 change: 1 addition & 0 deletions scripts/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ flake8-bugbear
flake8-class-attributes-order
flake8-comprehensions>=3.8 # flake8 v5 support
flake8-datetimez
flake8-noqa>=1.3.0 # flake8 v6 support
flake8-pyi>=22.11.0 # flake8 v6 support
flake8-simplify
pep8-naming
Expand Down
2 changes: 1 addition & 1 deletion src/capture_method/WindowsGraphicsCaptureMethod.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def close(self, autosplit: AutoSplit):
# OSError: The application called an interface that was marshalled for a different thread
# This still seems to close the session and prevent the following hard crash in LiveSplit
# pylint: disable=line-too-long
# "AutoSplit.exe <process started at 00:05:37.020 has terminated with 0xc0000409 (EXCEPTION_STACK_BUFFER_OVERRUN)>" # noqa E501
# "AutoSplit.exe <process started at 00:05:37.020 has terminated with 0xc0000409 (EXCEPTION_STACK_BUFFER_OVERRUN)>" # noqa: E501
pass
self.session = None

Expand Down
3 changes: 2 additions & 1 deletion src/capture_method/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ def get_input_device_resolution(index: int):


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

async def get_camera_info(index: int, device_name: str):
backend = ""
Expand Down
2 changes: 1 addition & 1 deletion src/menu_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from capture_method import (
CAPTURE_METHODS, CameraInfo, CaptureMethodEnum, change_capture_method, get_all_video_capture_devices,
)
from gen import about, design, resources_rc, settings as settings_ui, update_checker # noqa F401
from gen import about, design, resources_rc, settings as settings_ui, update_checker # noqa: F401
from hotkeys import HOTKEYS, Hotkey, set_hotkey
from utils import (
AUTOSPLIT_VERSION, FIRST_WIN_11_BUILD, GITHUB_REPOSITORY, WINDOWS_BUILD_NUMBER, decimal, fire_and_forget,
Expand Down
Loading

0 comments on commit 0f03ff2

Please sign in to comment.