Add missing objects in codecs, configparser, and multiprocessing.dummy (#7360)

This commit is contained in:
Alex Waygood
2022-02-22 17:25:27 +00:00
committed by GitHub
parent 28fd555431
commit 6fc4c14181
4 changed files with 5 additions and 4 deletions

View File

@@ -189,6 +189,7 @@ def replace_errors(exception: UnicodeError) -> tuple[str | bytes, int]: ...
def ignore_errors(exception: UnicodeError) -> tuple[str | bytes, int]: ...
def xmlcharrefreplace_errors(exception: UnicodeError) -> tuple[str | bytes, int]: ...
def backslashreplace_errors(exception: UnicodeError) -> tuple[str | bytes, int]: ...
def namereplace_errors(exception: UnicodeError) -> tuple[str | bytes, int]: ...
class Codec:
# These are sort of @abstractmethod but sort of not.

View File

@@ -163,8 +163,8 @@ class RawConfigParser(_parser):
class ConfigParser(RawConfigParser): ...
if sys.version_info < (3, 11):
class SafeConfigParser(ConfigParser): ...
if sys.version_info < (3, 12):
class SafeConfigParser(ConfigParser): ... # deprecated alias
class SectionProxy(MutableMapping[str, str]):
def __init__(self, parser: RawConfigParser, name: str) -> None: ...

View File

@@ -4,6 +4,8 @@ import weakref
from queue import Queue as Queue
from typing import Any, Callable, Iterable, Mapping, Sequence
from .connection import Pipe as Pipe
__all__ = [
"Process",
"current_process",

View File

@@ -662,7 +662,6 @@ bz2.BZ2File.peek
codecs.StreamReader.charbuffertype
codecs.StreamReader.seek
codecs.StreamWriter.seek
codecs.namereplace_errors
configparser.ParsingError.filename
configparser.RawConfigParser.converters
ctypes.ARRAY
@@ -680,7 +679,6 @@ logging.config.DictConfigurator
logging.config.dictConfigClass
mimetypes.MimeTypes.add_type
modulefinder.test
multiprocessing.dummy.Pipe
multiprocessing.managers.Server.accepter
multiprocessing.managers.Server.create
multiprocessing.managers.Server.debug_info