Skip to content

Commit 030328e

Browse files
committed
Minor type fixes
1 parent 5395577 commit 030328e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pymunk/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"Vec2d",
6868
]
6969

70-
from typing import Sequence, cast
70+
from typing import Any, Sequence, cast
7171

7272
from . import _chipmunk_cffi
7373

@@ -193,7 +193,7 @@ def area_for_poly(vertices: Sequence[tuple[float, float]], radius: float = 0) ->
193193
return cp.cpAreaForPoly(len(vs), vs, radius)
194194

195195

196-
def empty_callback(*args, **kwargs) -> None:
196+
def empty_callback(*args: Any, **kwargs: Any) -> None:
197197
"""A default empty callback.
198198
199199
Can be used to reset a collsion callback to its original empty

pymunk/tests/test_arbiter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def callback(
408408
# print("process_values, expected calls", process_values, expected_calls)
409409

410410
s = setup()
411-
hdata = {}
411+
hdata: dict[str, Any] = {}
412412
hdata["process_values"] = process_values
413413
hdata["expected"] = expected_calls
414414
hdata["result"] = []

0 commit comments

Comments
 (0)