Skip to content

Commit 0e22a38

Browse files
authored
Update Mypy Version (#71)
Fix merge from #70
2 parents 509d6f6 + 1040e8b commit 0e22a38

5 files changed

Lines changed: 9 additions & 6 deletions

File tree

.mirror.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# DANGER: EDIT AT YOUR OWN RISK. Track this file in version control so that others can sync files correctly.
2-
- commit: 0fd8794e44ce1024bc27fbaab173c9cba1f6311a
2+
- commit: 7193772bffc9c387e2ba0c271cdf27b592ddd21f
33
files:
44
- .github/python-release.yaml
55
- .github/python-test.yaml

.pre-commit-config.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ repos:
2020
- id: no-commit-to-branch
2121
fail_fast: true
2222
- id: end-of-file-fixer
23+
stages: [pre-commit]
2324
- id: mixed-line-ending
25+
stages: [pre-commit]
2426
- id: trailing-whitespace
27+
stages: [pre-commit]
2528
- id: requirements-txt-fixer
2629

2730
- repo: https://github.com/George-Ogden/linter/
@@ -37,7 +40,7 @@ repos:
3740
args: [--severity=warning]
3841

3942
- repo: https://github.com/astral-sh/ruff-pre-commit/
40-
rev: v0.15.9
43+
rev: v0.15.10
4144
hooks:
4245
- id: ruff-check
4346
args: [--fix]

mypy_pytest_plugin/test_signature.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import abc
22
from collections.abc import Sequence
33
from dataclasses import dataclass
4-
from typing import Self, TypeGuard, cast
4+
from typing import Self, TypeGuard
55

66
from mypy.checker import TypeChecker
77
from mypy.nodes import ArgKind, Context, Expression
@@ -15,7 +15,7 @@ class TestSignature(abc.ABC):
1515
type_variables: Sequence[TypeVarLikeType]
1616

1717
def _equal_names(self, other: object) -> TypeGuard[Self]:
18-
return type(other) is type(self) and cast(Self, self).fn_name == other.fn_name
18+
return type(other) is type(self) and self.fn_name == other.fn_name
1919

2020
@abc.abstractmethod
2121
def __len__(self) -> int: ...

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ pytest>=9.0.0
99
pytest-shard
1010
pytest-timeout
1111
pytest-xdist
12-
ruff==0.15.9
12+
ruff==0.15.10

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.1
1+
2.3.2

0 commit comments

Comments
 (0)