mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 13:02:22 +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",
|
||||
|
||||
Reference in New Issue
Block a user