Async filters are not awaited when with_context
or with_environment
is set
#117
Labels
bug
Something isn't working
with_context
or with_environment
is set
#117
The async filter interface (new in version 1.9.0) falls apart when a class-based filter defining
filter_async
also setswith_context
orwith_environment
toTrue
.This is due to our use of
functools.partial
to partially applycontext
andenvironment
arguments. Subsequently causinghasattr(func, "filter_async")
to returnFalse
when inspecting the filter at evaluation time.The text was updated successfully, but these errors were encountered: