Commit 2f4fe78e authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Use an unreleased trio-typing to fix a typing bug

parent 97295fc2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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]
+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
@@ -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