fix mypy finding

This commit is contained in:
David Lord 2024-05-06 10:23:10 -07:00
parent 273123f6b8
commit 860a25c390
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8

View file

@ -91,7 +91,7 @@ def stream_with_context(
gen = generator_or_function(*args, **kwargs) # type: ignore[operator]
return stream_with_context(gen)
return update_wrapper(decorator, generator_or_function) # type: ignore[arg-type]
return update_wrapper(decorator, generator_or_function) # type: ignore[arg-type, return-value]
def generator() -> t.Iterator[t.AnyStr | None]:
ctx = _cv_request.get(None)