Repository navigation
Conversation
|
this is a duplicate of #2462! this PR has a couple minor differences from #2462, however:
|
| @@ -1 +1 @@ | |||
| Fix :func:`sniffio.current_async_library` when Trio tasks are spawned from a non-Trio context (such as when using trio-asyncio). Previously, a regular Trio task would inherit the non-Trio library name, and spawning a system task would cause the non-Trio caller to start thinking it was Trio. | |||
| Fix ``sniffio.current_async_library()`` when Trio tasks are spawned from a non-Trio context (such as when using trio-asyncio). Previously, a regular Trio task would inherit the non-Trio library name, and spawning a system task would cause the non-Trio caller to start thinking it was Trio. | |||
There was a problem hiding this comment.
i believe you should be able to revert de460aa if you apply the patch
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 7200d913..17ed2320 100755
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -91,6 +91,7 @@ intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"outcome": ("https://outcome.readthedocs.io/en/latest/", None),
"pyopenssl": ("https://www.pyopenssl.org/en/stable/", None),
+ "sniffio": ("https://sniffio.readthedocs.io/en/latest/", None),
}
autodoc_member_order = "bysource"
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2574 +/- ##
=======================================
Coverage 92.45% 92.45%
=======================================
Files 118 118
Lines 16345 16350 +5
Branches 3155 3156 +1
=======================================
+ Hits 15112 15117 +5
Misses 1104 1104
Partials 129 129
|
|
#2462 contains these changes! |
Previously the context in which
start_soon()was called would be inherited, which is a problem when doing cross-library calls.