Loading .pre-commit-config.yaml +2 −1 Original line number Diff line number Diff line Loading @@ -97,6 +97,7 @@ repos: - types-requests - types-urllib3 - typing-extensions ~=4.0; python_version < "3.10" - trio-typing[mypy] ~=0.6 # https://github.com/python-trio/trio-typing/pull/72 - trio-typing[mypy] @git+https://github.com/gschaffner/trio-typing.git@fix-takes_callable_and_args-TypeVar-binding - xdg ~=5.1 - git+https://code.kodo.org.uk/dom/type-stubs.git#type-stubs[jsonpath,parse] tests/unit/trio.py +2 −2 Original line number Diff line number Diff line # Copyright 2022 Dominik Sekotill <dom.sekotill@kodo.org.uk> # Copyright 2022-2023 Dominik Sekotill <dom.sekotill@kodo.org.uk> # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this Loading Loading @@ -36,6 +36,6 @@ def trio_test(clock: Clock|None = None) -> Callable[[Callable[P, Awaitable[T]]], @wraps(func) def wrapper(*args: P.args, **kwargs: P.kwargs) -> T: # https://github.com/python-trio/trio-typing/issues/58 return run(partial(func, *args, **kwargs), clock=clock) # type: ignore return run(partial(func, *args, **kwargs), clock=clock) return wrapper return decorator Loading
.pre-commit-config.yaml +2 −1 Original line number Diff line number Diff line Loading @@ -97,6 +97,7 @@ repos: - types-requests - types-urllib3 - typing-extensions ~=4.0; python_version < "3.10" - trio-typing[mypy] ~=0.6 # https://github.com/python-trio/trio-typing/pull/72 - trio-typing[mypy] @git+https://github.com/gschaffner/trio-typing.git@fix-takes_callable_and_args-TypeVar-binding - xdg ~=5.1 - git+https://code.kodo.org.uk/dom/type-stubs.git#type-stubs[jsonpath,parse]
tests/unit/trio.py +2 −2 Original line number Diff line number Diff line # Copyright 2022 Dominik Sekotill <dom.sekotill@kodo.org.uk> # Copyright 2022-2023 Dominik Sekotill <dom.sekotill@kodo.org.uk> # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this Loading Loading @@ -36,6 +36,6 @@ def trio_test(clock: Clock|None = None) -> Callable[[Callable[P, Awaitable[T]]], @wraps(func) def wrapper(*args: P.args, **kwargs: P.kwargs) -> T: # https://github.com/python-trio/trio-typing/issues/58 return run(partial(func, *args, **kwargs), clock=clock) # type: ignore return run(partial(func, *args, **kwargs), clock=clock) return wrapper return decorator