Skip to content

Commit 8cfa2ac

Browse files
Merge branch 'main' into main
2 parents 003db6a + b158ccd commit 8cfa2ac

File tree

95 files changed

+694
-423
lines changed

Some content is hidden

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

95 files changed

+694
-423
lines changed

.github/workflows/daily.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ env:
3030
jobs:
3131
stubtest-stdlib:
3232
name: "stubtest: stdlib"
33-
if: ${{ github.repository == 'python/typeshed' || github.event_name == 'workflow_dispatch' }}
33+
if: ${{ github.repository == 'python/typeshed' || github.event_name != 'schedule' }}
3434
runs-on: ${{ matrix.os }}
3535
strategy:
3636
matrix:
@@ -58,7 +58,7 @@ jobs:
5858

5959
stubtest-third-party:
6060
name: "stubtest: third party"
61-
if: ${{ github.repository == 'python/typeshed' || github.event_name == 'workflow_dispatch' }}
61+
if: ${{ github.repository == 'python/typeshed' || github.event_name != 'schedule' }}
6262
runs-on: ${{ matrix.os }}
6363
strategy:
6464
matrix:
@@ -110,7 +110,7 @@ jobs:
110110
111111
stub-uploader:
112112
name: stub_uploader tests
113-
if: ${{ github.repository == 'python/typeshed' || github.event_name == 'workflow_dispatch' }}
113+
if: ${{ github.repository == 'python/typeshed' || github.event_name != 'schedule' }}
114114
runs-on: ubuntu-latest
115115
steps:
116116
- name: Checkout typeshed

pyrightconfig.stricter.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
"stubs/tqdm",
9494
"stubs/vobject",
9595
"stubs/workalendar",
96+
"stubs/xmltodict",
9697
],
9798
"typeCheckingMode": "strict",
9899
// TODO: Complete incomplete stubs

requirements-tests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Type checkers that we test our stubs against. These should always
22
# be pinned to a specific version to make failure reproducible.
3-
mypy==1.17.1
3+
mypy==1.18.1
44
pyright==1.1.405
55

66
# Libraries used by our various scripts.

stdlib/@tests/stubtest_allowlists/common.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ _collections_abc.AsyncGenerator.__anext__
181181
_collections_abc.AsyncGenerator.aclose
182182
_collections_abc.AsyncIterator.__anext__
183183

184+
# Pretend typing.ByteString is a Union, to better match its documented semantics.
185+
# As a side effect, this changes the definition of collections.abc.ByteString, which is okay,
186+
# because it's not an ABC that makes any sense and was deprecated in 3.12
187+
_collections_abc\.ByteString
188+
typing\.ByteString
189+
184190
_collections_abc.Callable # Typing-related weirdness
185191
_collections_abc.Mapping.get # Adding None to the Union messed up mypy
186192
_collections_abc.Sequence.index # Supporting None in end is not mandatory

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,11 @@ _msi
2929
msilib(.[a-z]+)?
3030
ossaudiodev
3131
spwd
32+
33+
34+
# ================
35+
# Unclear problems
36+
# ================
37+
38+
# Added in 3.11.1, flagged by stubtest on Python < 3.14 for unknown reasons
39+
errno.ENOTCAPABLE

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,11 @@ _msi
1717
msilib(.[a-z]+)?
1818
ossaudiodev
1919
spwd
20+
21+
22+
# ================
23+
# Unclear problems
24+
# ================
25+
26+
# Added in 3.11.1, flagged by stubtest on Python < 3.14 for unknown reasons
27+
errno.ENOTCAPABLE

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@
33
# =======
44

55
(mmap.MAP_32BIT)? # Exists locally on MacOS but not on GitHub
6+
7+
8+
# ================
9+
# Unclear problems
10+
# ================
11+
12+
# Added in 3.11.1, flagged by stubtest on Python < 3.14 for unknown reasons
13+
errno.ENOTCAPABLE

stdlib/@tests/stubtest_allowlists/py310.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,19 +155,12 @@ tkinter.tix.TkVersion
155155
# <= 3.13
156156
# =======
157157

158-
# Pretend typing.ByteString is a Union, to better match its documented semantics.
159-
# As a side effect, this changes the definition of collections.abc.ByteString, which is okay,
160-
# because it's not an ABC that makes any sense and was deprecated in 3.12
161-
_collections_abc.ByteString
162-
163158
ast.Ellipsis.__new__ # Implementation has *args, but shouldn't allow any
164159

165160
_?hashlib.scrypt # Raises TypeError if salt, n, r or p are None
166161

167162
importlib.abc.Traversable.open # Problematic protocol signature at runtime, see source code comments.
168163

169-
typing\.ByteString
170-
171164
# Will always raise. Not included to avoid type checkers inferring that
172165
# TypeAliasType instances are callable.
173166
typing_extensions.TypeAliasType.__call__

stdlib/@tests/stubtest_allowlists/py311.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,19 +121,12 @@ tkinter.tix.TkVersion
121121
# <= 3.13
122122
# =======
123123

124-
# Pretend typing.ByteString is a Union, to better match its documented semantics.
125-
# As a side effect, this changes the definition of collections.abc.ByteString, which is okay,
126-
# because it's not an ABC that makes any sense and was deprecated in 3.12
127-
_collections_abc.ByteString
128-
129124
ast.Ellipsis.__new__ # Implementation has *args, but shouldn't allow any
130125

131126
_?hashlib.scrypt # Raises TypeError if salt, n, r or p are None
132127

133128
importlib.abc.Traversable.open # Problematic protocol signature at runtime, see source code comments.
134129

135-
typing\.ByteString
136-
137130
# Will always raise. Not included to avoid type checkers inferring that
138131
# TypeAliasType instances are callable.
139132
typing_extensions.TypeAliasType.__call__

stdlib/@tests/stubtest_allowlists/py312.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,19 +120,12 @@ tkinter.tix.TkVersion
120120
# <= 3.13
121121
# =======
122122

123-
# Pretend typing.ByteString is a Union, to better match its documented semantics.
124-
# As a side effect, this changes the definition of collections.abc.ByteString, which is okay,
125-
# because it's not an ABC that makes any sense and was deprecated in 3.12
126-
_collections_abc.ByteString
127-
128123
ast.Ellipsis.__new__ # Implementation has *args, but shouldn't allow any
129124

130125
_?hashlib.scrypt # Raises TypeError if salt, n, r or p are None
131126

132127
importlib.abc.Traversable.open # Problematic protocol signature at runtime, see source code comments.
133128

134-
typing\.ByteString
135-
136129
# Will always raise. Not included to avoid type checkers inferring that
137130
# TypeAliasType instances are callable.
138131
typing_extensions.TypeAliasType.__call__

0 commit comments

Comments
 (0)