Skip to content

Commit e03adf1

Browse files
authored
Merge pull request #108 from ESSS/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 66bb6d7 + fbcfc06 commit e03adf1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: .pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 23.10.1
3+
rev: 23.11.0
44
hooks:
55
- id: black
66
args: [--safe, --quiet]
@@ -30,7 +30,7 @@ repos:
3030
language: python
3131
additional_dependencies: [pygments, restructuredtext_lint]
3232
- repo: https://github.com/pre-commit/mirrors-mypy
33-
rev: v1.6.1
33+
rev: v1.7.0
3434
hooks:
3535
- id: mypy
3636
files: ^(src/)

Diff for: src/oop_ext/foundation/_tests/test_weak_ref.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def CustomAssertEqual(a, b):
318318
assert False, "{} != {}".format(a, b)
319319

320320

321-
def SetupTestAttributes():
321+
def SetupTestAttributes() -> Any:
322322
class C:
323323
x: int
324324

Diff for: src/oop_ext/foundation/callback/_callback.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def Contains(
391391

392392
real_func: Optional[Callable] = func
393393

394-
if real_func.__class__ == WeakMethodProxy:
394+
if isinstance(real_func, WeakMethodProxy):
395395
real_func = cast(WeakMethodProxy, real_func)
396396
real_func = real_func.GetWrappedFunction()
397397

0 commit comments

Comments
 (0)