mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00

gh-126451: Register contextvars.Context to collections.abc.Mapping (GH-126452)
(cherry picked from commit 5dc36dc565
)
Co-authored-by: Stephen Morton <git@tungol.org>
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
8 lines
198 B
Python
8 lines
198 B
Python
import _collections_abc
|
|
from _contextvars import Context, ContextVar, Token, copy_context
|
|
|
|
|
|
__all__ = ('Context', 'ContextVar', 'Token', 'copy_context')
|
|
|
|
|
|
_collections_abc.Mapping.register(Context)
|