mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Add missing objects in codecs, configparser, and multiprocessing.dummy (#7360)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user