contextvars
contextvars copied to clipboard
PEP 567 Backport
Hi all, Everything has worked fine for ContextVarsScopeManager if I have only Fastapi application. But, When I tried to mount a Flask WSGIApplication to the Fastapi application, I've got an...
This is a proposal to fix #2 in Approach 2, with patching code to achieve context copying on task creation, please see separate commits in this PR. Regarding context copying/inheriting:...
Wheels (`.whl`) for this package are [currently missing from PyPI](https://pypi.org/project/pefile/2021.9.3/#files). Could wheels be uploaded for the current and future releases? Read more about the [advantages of wheels](https://pythonwheels.com/) to understand why...
```console + /usr/bin/pytest -ra =========================================================================== test session starts ============================================================================ platform linux -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-0.13.1 benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000) Using --randomly-seed=661925073...
Hi! I've found a difference between the built-in version of contextvars and this backport. Generic type annotations are not supported. This works in python: ``` c: contextvars.ContextVar[str] = contextvars.ContextVar('test') ```...
Hi! I know that `asyncio` support is not yet implemented (as described on README), but to "get there" wouldn't be like adding some kind of `contextvars` task factory into the...