Skip to content

Commit d17a1f3

Browse files
authored
Merge branch 'main' into like-protos
2 parents 6adfd9d + 5a5912b commit d17a1f3

265 files changed

Lines changed: 3855 additions & 2284 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ you can install the type stubs using
3838
$ pip install types-html5lib types-requests
3939
```
4040

41-
These PyPI packages follow [PEP 561](http://www.python.org/dev/peps/pep-0561/)
41+
These PyPI packages follow [the typing spec standards](https://typing.python.org/en/latest/spec/distributing.html)
4242
and are automatically released (up to once a day) by
4343
[typeshed internal machinery](https://github.com/typeshed-internal/stub_uploader).
4444

pyrightconfig.stricter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"stubs/auth0-python",
2727
"stubs/Authlib",
2828
"stubs/aws-xray-sdk",
29+
"stubs/behave",
2930
"stubs/boltons",
3031
"stubs/braintree",
3132
"stubs/cffi",
@@ -78,7 +79,6 @@
7879
"stubs/pycurl",
7980
"stubs/Pygments",
8081
"stubs/PyMySQL",
81-
"stubs/python-dateutil",
8282
"stubs/python-jose",
8383
"stubs/pywin32",
8484
"stubs/PyYAML",

stdlib/@tests/stubtest_allowlists/common.txt

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,26 @@ _collections_abc\.ByteString
204204
typing\.ByteString
205205

206206
_collections_abc.Callable # Typing-related weirdness
207-
_collections_abc.Mapping.get # Adding None to the Union messed up mypy
208-
_collections_abc.Sequence.index # Supporting None in end is not mandatory
207+
208+
# While the implementation in _collections_abc.py uses positional-or-keyword args,
209+
# this is unsafe as canonical types list/dict/set etc. only support positional args.
210+
# See: https://github.com/python/typeshed/issues/14071
211+
# See: https://github.com/python/cpython/issues/135312
212+
_collections_abc.Mapping.get
213+
_collections_abc.MutableSequence.append
214+
_collections_abc.MutableSequence.extend
215+
_collections_abc.MutableSequence.insert
216+
_collections_abc.MutableSequence.pop
217+
_collections_abc.MutableSequence.remove
218+
_collections_abc.MutableSet.add
219+
_collections_abc.MutableSet.discard
220+
_collections_abc.MutableSet.remove
221+
_collections_abc.Sequence.count
222+
_collections_abc.Sequence.index
223+
_collections_abc.Set.isdisjoint
224+
_collections_abc.Set._from_iterable
225+
_collections_abc.ItemsView._from_iterable
226+
_collections_abc.KeysView._from_iterable
209227

210228
_ctypes.CFuncPtr # stubtest erroneously thinks it can't be subclassed
211229

@@ -418,8 +436,11 @@ os._wrap_close.write # Methods that come from __getattr__() at runtime
418436
os._wrap_close.writelines # Methods that come from __getattr__() at runtime
419437
os.PathLike.__class_getitem__ # PathLike is a protocol; we don't expect all PathLike classes to implement class_getitem
420438

439+
_pickle.Pickler.reducer_override # Can be added by subclasses
440+
pickle.Pickler.reducer_override # Can be added by subclasses
421441
pickle._Pickler\..* # Best effort typing for undocumented internals
422442
pickle._Unpickler\..* # Best effort typing for undocumented internals
443+
423444
shutil.rmtree # function with attributes, which we approximate with a callable protocol
424445
socketserver.BaseServer.get_request # Not implemented, but expected to exist on subclasses.
425446
ssl.PROTOCOL_SSLv2 # Depends on the existence and flags of SSL

stdlib/@tests/stubtest_allowlists/darwin-py310.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ tarfile.TarFile.makelink_with_filter
6464

6565
# Incompatible changes introduced in Python 3.10.20
6666
# (Remove once 3.10.20 becomes available for GitHub Actions)
67+
email._header_value_parser.make_parenthesis_pairs
6768
html.parser.HTMLParser.__init__ # parameter `scripting`
6869
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
6970
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification

stdlib/@tests/stubtest_allowlists/darwin-py311.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ tarfile.TarFile.makelink_with_filter
3535

3636
# Incompatible changes introduced in Python 3.11.15
3737
# (Remove once 3.11.15 becomes available for GitHub Actions)
38+
email._header_value_parser.make_parenthesis_pairs
3839
html.parser.HTMLParser.__init__ # parameter `scripting`
3940
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
4041
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification

stdlib/@tests/stubtest_allowlists/darwin-py312.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ tarfile.TarFile.makelink_with_filter
2222

2323
# Incompatible changes introduced in Python 3.12.13
2424
# (Remove once 3.12.13 becomes available for GitHub Actions)
25+
email._header_value_parser.make_parenthesis_pairs
2526
html.parser.HTMLParser.__init__ # parameter `scripting`
2627
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
2728
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification

stdlib/@tests/stubtest_allowlists/linux-py310.txt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
# =========
2-
# Temporary
3-
# =========
4-
5-
# Incompatible changes introduced in Python 3.10.20
6-
# (Remove once 3.10.20 becomes available for GitHub Actions)
7-
html.parser.HTMLParser.__init__ # parameter `scripting`
8-
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
9-
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification
10-
xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold
11-
xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification
12-
13-
141
# =============================================================
152
# Allowlist entries that cannot or should not be fixed; <= 3.12
163
# =============================================================

stdlib/@tests/stubtest_allowlists/linux-py311.txt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
# =========
2-
# Temporary
3-
# =========
4-
5-
# Incompatible changes introduced in Python 3.11.15
6-
# (Remove once 3.11.15 becomes available for GitHub Actions)
7-
html.parser.HTMLParser.__init__ # parameter `scripting`
8-
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
9-
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification
10-
xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold
11-
xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification
12-
13-
141
# =============================================================
152
# Allowlist entries that cannot or should not be fixed; <= 3.12
163
# =============================================================

stdlib/@tests/stubtest_allowlists/linux-py312.txt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
# =========
2-
# Temporary
3-
# =========
4-
5-
# Incompatible changes introduced in Python 3.12.13
6-
# (Remove once 3.12.13 becomes available for GitHub Actions)
7-
html.parser.HTMLParser.__init__ # parameter `scripting`
8-
pyexpat.XMLParserType.SetAllocTrackerActivationThreshold
9-
pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification
10-
xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold
11-
xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification
12-
13-
141
# =============================================================
152
# Allowlist entries that cannot or should not be fixed; <= 3.12
163
# =============================================================

stdlib/@tests/stubtest_allowlists/py314.txt

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
# ====================================================================
2-
# TODO: New errors in Python 3.14 that need to be fixed or moved below
3-
# ====================================================================
4-
5-
multiprocessing.managers.BaseListProxy.clear
6-
# inspect.signature gives the wrong signature
7-
multiprocessing.managers.BaseListProxy.copy
8-
multiprocessing.managers.DictProxy.__ior__
9-
multiprocessing.managers._BaseDictProxy.__ior__
10-
multiprocessing.managers._BaseDictProxy.__or__
11-
multiprocessing.managers._BaseDictProxy.__reversed__
12-
multiprocessing.managers._BaseDictProxy.__ror__
13-
multiprocessing.managers._BaseDictProxy.fromkeys
14-
15-
161
# =========================
172
# New errors in Python 3.14
183
# =========================
@@ -100,6 +85,9 @@ multiprocessing.managers._BaseSetProxy.__len__
10085
multiprocessing.managers._BaseSetProxy.clear
10186
multiprocessing.managers._BaseSetProxy.copy
10287
multiprocessing.managers._BaseSetProxy.pop
88+
multiprocessing.managers.BaseListProxy.clear
89+
multiprocessing.managers.BaseListProxy.copy
90+
multiprocessing.managers._BaseDictProxy.__reversed__
10391

10492

10593
# =============================================================

0 commit comments

Comments
 (0)