Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions stdlib/codecs.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions stdlib/configparser.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down
2 changes: 2 additions & 0 deletions stdlib/multiprocessing/dummy/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions tests/stubtest_allowlists/py3_common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,6 @@ bz2.BZ2File.peek
codecs.StreamReader.charbuffertype
codecs.StreamReader.seek
codecs.StreamWriter.seek
codecs.namereplace_errors
configparser.ParsingError.filename
configparser.RawConfigParser.converters
ctypes.ARRAY
Expand All @@ -682,7 +681,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
Expand Down