Skip to content
Myr

Correct the error handler typing

Before adoption: this commit came in with the history the project adopted, so no landing records it.

It may also be awaitable, as invocations are wrapped in ensure_sync.

authored by pgjones · committed by pgjones · parent cc80a47 · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:src/flask/typing.py+4 added-1 removed
75 unmodified lines
76# exceptions (and using a union type on the argument).77# https://github.com/pallets/flask/issues/409578# https://github.com/pallets/flask/issues/429579# https://github.com/pallets/flask/issues/429780ErrorHandlerCallable = t.Callable[[t.Any], ResponseReturnValue]80ErrorHandlerCallable = t.Union[81 t.Callable[[t.Any], ResponseReturnValue],82 t.Callable[[t.Any], t.Awaitable[ResponseReturnValue]],83]8485RouteCallable = t.Union[86 t.Callable[..., ResponseReturnValue],87 t.Callable[..., t.Awaitable[ResponseReturnValue]],
1 unmodified line