Skip to content

Commit fa7a29b

Browse files
committed
.
1 parent daefbb4 commit fa7a29b

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

stdlib/json/encoder.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ INFINITY: float
1010

1111
def py_encode_basestring(s: str) -> str: ... # undocumented
1212
def py_encode_basestring_ascii(s: str) -> str: ... # undocumented
13+
def encode_basestring(s: str) -> str: ... # undocumented
14+
def encode_basestring_ascii(s: str) -> str: ... # undocumented
1315

1416
class JSONEncoder:
1517
item_separator: str

stdlib/ssl.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ _PasswordType: TypeAlias = Callable[[], str | bytes | bytearray] | str | bytes |
1515

1616
_SrvnmeCbType: TypeAlias = Callable[[SSLSocket | SSLObject, str | None, SSLSocket], int | None]
1717

18+
socket_error = OSError
19+
1820
class _Cipher(TypedDict):
1921
aead: bool
2022
alg_bits: int

tests/stubtest_allowlists/py38.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ gettext.translation # codeset default value is ['unspecified'] so can't be spec
4141
importlib.abc.Finder.find_module
4242
inspect.Signature.from_builtin # Removed in 3.11, can add if someone needs this
4343
inspect.Signature.from_function # Removed in 3.11, can add if someone needs this
44-
random.Random.randrange # missing undocumented arg _int
4544
sched.Event.__doc__ # __slots__ is overridden
4645
typing.NamedTuple.__new__
4746
typing.NamedTuple._asdict

tests/stubtest_allowlists/py3_common.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,8 @@ multiprocessing.(dummy|managers).Namespace.__[gs]etattr__ # Any field can be se
446446
# mypy infers the variable has type `(*args) -> ForkingPickler`
447447
# but stubtest infers the runtime type as <class ForkingPickler>
448448
multiprocessing.reduction.AbstractReducer.ForkingPickler
449+
# Non-private parameter on __del__
450+
multiprocessing.pool.Pool.__del__
449451

450452
# C signature is broader than what is actually accepted
451453
queue.SimpleQueue.__init__
@@ -560,6 +562,10 @@ turtle.ScrolledCanvas.find_all
560562
turtle.ScrolledCanvas.select_clear
561563
turtle.ScrolledCanvas.select_item
562564

565+
# Attributes that are intended to be private
566+
uuid.bytes_
567+
uuid.int_
568+
563569
# Always overridden in inheriting class
564570
webbrowser.UnixBrowser.remote_action
565571
webbrowser.UnixBrowser.remote_action_newtab

0 commit comments

Comments
 (0)