Skip to content

Commit 19d2b9a

Browse files
authored
Merge branch 'main' into pywin32--Add-win32gui._TrackMouseEvent
2 parents d39a5d8 + 0125fe2 commit 19d2b9a

File tree

22 files changed

+112
-74
lines changed

22 files changed

+112
-74
lines changed

.github/workflows/daily.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
with:
117117
# Keep in sync with stub_uploader's check_scripts.yml workflow.
118118
python-version: "3.13"
119-
- uses: astral-sh/setup-uv@v5
119+
- uses: astral-sh/setup-uv@v6
120120
- name: Run tests
121121
run: |
122122
cd stub_uploader

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
with:
4444
# Max supported Python version as of pytype 2024.10.11
4545
python-version: "3.12"
46-
- uses: astral-sh/setup-uv@v5
46+
- uses: astral-sh/setup-uv@v6
4747
- run: uv pip install -r requirements-tests.txt --system
4848
- name: Install external dependencies for 3rd-party stubs
4949
run: |
@@ -118,7 +118,7 @@ jobs:
118118
- uses: actions/setup-python@v5
119119
with:
120120
python-version: "3.13"
121-
- uses: astral-sh/setup-uv@v5
121+
- uses: astral-sh/setup-uv@v6
122122
- name: Install typeshed test-suite requirements
123123
# Install these so we can run `get_external_stub_requirements.py`
124124
run: uv pip install -r requirements-tests.txt --system
@@ -183,7 +183,7 @@ jobs:
183183
with:
184184
# Keep in sync with stub_uploader's check_scripts.yml workflow.
185185
python-version: "3.13"
186-
- uses: astral-sh/setup-uv@v5
186+
- uses: astral-sh/setup-uv@v6
187187
- name: Run tests
188188
run: |
189189
cd stub_uploader

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def foo(x): ... # unannotated argument and return type
312312
`Incomplete` can also be used for partially known types:
313313

314314
```python
315-
def foo(x: Incomplete | None = None) -> list[Incomplete]: ...
315+
def foo(x: Incomplete | None) -> list[Incomplete]: ...
316316
```
317317

318318
### What to do when a project's documentation and implementation disagree

pyrightconfig.stricter.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// test cases use a custom pyrightconfig file
1010
"**/@tests/test_cases",
1111
"stdlib/__main__.pyi",
12+
"stdlib/distutils/cmd.pyi",
1213
"stdlib/distutils/command",
1314
"stdlib/distutils/dist.pyi",
1415
"stdlib/encodings/__init__.pyi",

requirements-tests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ termcolor>=2.3
2424
tomli==2.2.1
2525
tomlkit==0.13.2
2626
typing_extensions>=4.13.0rc1
27-
uv==0.6.11
27+
uv==0.7.4
2828

2929
# Utilities for typeshed infrastructure scripts.
3030
ts_utils @ file:lib

stdlib/distutils/cmd.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from _typeshed import BytesPath, Incomplete, StrOrBytesPath, StrPath, Unused
1+
from _typeshed import BytesPath, StrOrBytesPath, StrPath, Unused
22
from abc import abstractmethod
33
from collections.abc import Callable, Iterable
44
from distutils.command.bdist import bdist
@@ -226,4 +226,4 @@ class Command:
226226
level: Unused = 1,
227227
) -> None: ...
228228
def ensure_finalized(self) -> None: ...
229-
def dump_options(self, header: Incomplete | None = None, indent: str = "") -> None: ...
229+
def dump_options(self, header=None, indent: str = "") -> None: ...

stdlib/distutils/command/config.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from _typeshed import Incomplete, StrOrBytesPath
1+
from _typeshed import StrOrBytesPath
22
from collections.abc import Sequence
33
from re import Pattern
44
from typing import ClassVar, Final, Literal
@@ -81,4 +81,4 @@ class config(Command):
8181
self, header: str, include_dirs: Sequence[str] | None = None, library_dirs: Sequence[str] | None = None, lang: str = "c"
8282
) -> bool: ...
8383

84-
def dump_file(filename: StrOrBytesPath, head: Incomplete | None = None) -> None: ...
84+
def dump_file(filename: StrOrBytesPath, head=None) -> None: ...

stdlib/distutils/command/register.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from _typeshed import Incomplete
21
from collections.abc import Callable
32
from typing import Any, ClassVar
43

@@ -18,4 +17,4 @@ class register(PyPIRCCommand):
1817
def verify_metadata(self) -> None: ...
1918
def send_metadata(self) -> None: ...
2019
def build_post_data(self, action): ...
21-
def post_to_server(self, data, auth: Incomplete | None = None): ...
20+
def post_to_server(self, data, auth=None): ...

stdlib/distutils/dist.pyi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ class Distribution:
112112
command_obj: Incomplete
113113
have_run: Incomplete
114114
want_user_cfg: bool
115-
def dump_option_dicts(
116-
self, header: Incomplete | None = None, commands: Incomplete | None = None, indent: str = ""
117-
) -> None: ...
115+
def dump_option_dicts(self, header=None, commands=None, indent: str = "") -> None: ...
118116
def find_config_files(self): ...
119117
commands: Incomplete
120118
def parse_command_line(self): ...

stdlib/numbers.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# (since type checkers don't see `complex` as a subtype of `numbers.Complex`,
88
# nor `float` as a subtype of `numbers.Real`, etc.)
99

10-
from _typeshed import Incomplete
1110
from abc import ABCMeta, abstractmethod
1211
from typing import ClassVar, Literal, Protocol, overload
1312

@@ -166,7 +165,7 @@ class Integral(Rational, _IntegralLike):
166165
def __int__(self) -> int: ...
167166
def __index__(self) -> int: ...
168167
@abstractmethod
169-
def __pow__(self, exponent, modulus: Incomplete | None = None) -> _IntegralLike: ...
168+
def __pow__(self, exponent, modulus=None) -> _IntegralLike: ...
170169
@abstractmethod
171170
def __lshift__(self, other) -> _IntegralLike: ...
172171
@abstractmethod

0 commit comments

Comments
 (0)