Skip to content

Commit 24d39de

Browse files
authored
Use Python 3.11 for third-party stubtest in CI (#11562)
1 parent 1a942aa commit 24d39de

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed

.github/workflows/daily.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
with:
7070
# TODO: Use Python 3.12. As of 2024-03-08, several third-party
7171
# packages fail to install with Python 3.12.
72-
python-version: "3.10"
72+
python-version: "3.11"
7373
cache: pip
7474
cache-dependency-path: |
7575
requirements-tests.txt

.github/workflows/stubtest_third_party.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
with:
4444
# TODO: Use Python 3.12. As of 2024-03-08, several third-party
4545
# packages fail to install with Python 3.12.
46-
python-version: "3.10"
46+
python-version: "3.11"
4747
cache: pip
4848
cache-dependency-path: |
4949
requirements-tests.txt

stubs/Flask-Migrate/flask_migrate/__init__.pyi

+3-1
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,7 @@ def history(
132132
def heads(directory: str | None = None, verbose: bool = False, resolve_dependencies: bool = False) -> None: ...
133133
def branches(directory: str | None = None, verbose: bool = False) -> None: ...
134134
def current(directory: str | None = None, verbose: bool = False) -> None: ...
135-
def stamp(directory: str | None = None, revision: str = "head", sql: bool = False, tag: str | None = None) -> None: ...
135+
def stamp(
136+
directory: str | None = None, revision: str = "head", sql: bool = False, tag: str | None = None, purge: bool = False
137+
) -> None: ...
136138
def check(directory: str | None = None) -> None: ...

stubs/gevent/@tests/stubtest_allowlist.txt

-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ gevent.socket.SocketType.setblocking
167167
gevent.socket.SocketType.settimeout
168168
gevent.socket.SocketType.shutdown
169169
gevent.socket.cancel_wait
170-
gevent.socket.create_connection
171170
gevent.socket.gethostbyaddr
172171
gevent.socket.gethostbyname
173172
gevent.socket.gethostbyname_ex

stubs/pynput/@tests/stubtest_allowlist.txt

-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# These __init__ methods have *args, **kwargs arguments on some platforms, but not others
22
pynput.mouse.Controller.__init__
33

4-
# stubtest issues with non-`type` metaclasses, see https://github.com/python/mypy/issues/13316
5-
pynput.keyboard.Controller._Key
6-
pynput.keyboard._base.Controller._Key
7-
pynput.keyboard._dummy.Controller._Key
8-
94
# Platform specific private utils:
105
pynput._util.xorg_keysyms
116
pynput._util.xorg

0 commit comments

Comments
 (0)