Skip to content

Commit

Permalink
Merge pull request #108 from ESSS/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
nicoddemus authored Nov 14, 2023
2 parents 66bb6d7 + fbcfc06 commit e03adf1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 23.10.1
rev: 23.11.0
hooks:
- id: black
args: [--safe, --quiet]
Expand Down Expand Up @@ -30,7 +30,7 @@ repos:
language: python
additional_dependencies: [pygments, restructuredtext_lint]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
rev: v1.7.0
hooks:
- id: mypy
files: ^(src/)
Expand Down
2 changes: 1 addition & 1 deletion src/oop_ext/foundation/_tests/test_weak_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def CustomAssertEqual(a, b):
assert False, "{} != {}".format(a, b)


def SetupTestAttributes():
def SetupTestAttributes() -> Any:
class C:
x: int

Expand Down
2 changes: 1 addition & 1 deletion src/oop_ext/foundation/callback/_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def Contains(

real_func: Optional[Callable] = func

if real_func.__class__ == WeakMethodProxy:
if isinstance(real_func, WeakMethodProxy):
real_func = cast(WeakMethodProxy, real_func)
real_func = real_func.GetWrappedFunction()

Expand Down

0 comments on commit e03adf1

Please sign in to comment.