Skip to content

Commit 731f583

Browse files
ci: update mypy, ruff, and types-paho-mqtt
1 parent 9bc5cf8 commit 731f583

File tree

4 files changed

+76
-54
lines changed

4 files changed

+76
-54
lines changed

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"editor.defaultFormatter": "charliermarsh.ruff"
55
},
66
"python.testing.unittestEnabled": false,
7-
"python.testing.pytestEnabled": true
7+
"python.testing.pytestEnabled": true,
8+
"mypy-type-checker.importStrategy": "fromEnvironment"
89
}

aiomqtt/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def __init__( # noqa: PLR0913
114114
# `nullcontext` when we support Python 3.10 (`nullcontext` becomes async-aware in
115115
# 3.10). See: https://docs.python.org/3/library/contextlib.html#contextlib.nullcontext
116116
def _outgoing_call(
117-
method: Callable[Concatenate[ClientT, P], Coroutine[Any, Any, T]]
117+
method: Callable[Concatenate[ClientT, P], Coroutine[Any, Any, T]],
118118
) -> Callable[Concatenate[ClientT, P], Coroutine[Any, Any, T]]:
119119
@functools.wraps(method)
120120
async def decorated(self: ClientT, /, *args: P.args, **kwargs: P.kwargs) -> T:

0 commit comments

Comments
 (0)