From ac39a73d381748c86fa7fee49cd73803c68b8ef7 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Wed, 25 Aug 2021 16:59:23 -0600 Subject: [PATCH] Add type for undocumented copyreg.dispatch_table (#5959) --- stdlib/copyreg.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/copyreg.pyi b/stdlib/copyreg.pyi index d275968d5..320097b3a 100644 --- a/stdlib/copyreg.pyi +++ b/stdlib/copyreg.pyi @@ -14,3 +14,5 @@ def constructor(object: Callable[[_Reduce[_TypeT]], _TypeT]) -> None: ... def add_extension(module: Hashable, name: Hashable, code: SupportsInt) -> None: ... def remove_extension(module: Hashable, name: Hashable, code: int) -> None: ... def clear_extension_cache() -> None: ... + +dispatch_table: dict[type, Callable[[type], str | _Reduce[type]]] # undocumented