Skip to content

Commit

Permalink
Fix new Ruff 0.1.10 failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Jan 5, 2024
1 parent 5eab356 commit aa2e5e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- id: pretty-format-ini
args: [--autofix]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.9" # Must match requirements-dev.txt
rev: "v0.1.11" # Must match requirements-dev.txt
hooks:
- id: ruff
args: [--fix]
Expand Down
2 changes: 1 addition & 1 deletion scripts/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# Linters & Formatters
add-trailing-comma>=3.1.0 # Must match .pre-commit-config.yaml
autopep8>=2.0.4 # Must match .pre-commit-config.yaml
ruff>=0.1.7 # New checks # Must match .pre-commit-config.yaml
ruff>=0.1.11 # New checks # Must match .pre-commit-config.yaml
#
# Types
types-D3DShot ; sys_platform == 'win32'
Expand Down
4 changes: 2 additions & 2 deletions src/capture_method/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from dataclasses import dataclass
from enum import Enum, EnumMeta, auto, unique
from itertools import starmap
from typing import TYPE_CHECKING, NoReturn, TypedDict, cast
from typing import TYPE_CHECKING, TypedDict, cast

from typing_extensions import Never, override

Expand Down Expand Up @@ -114,7 +114,7 @@ def get_method_by_index(self, index: int):
def __getitem__( # type:ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
self,
__key: Never,
) -> NoReturn | type[CaptureMethodBase]:
) -> type[CaptureMethodBase]:
return super().__getitem__(__key)

@override
Expand Down

0 comments on commit aa2e5e1

Please sign in to comment.