Brian Schubert
efccd7455a
hashlib: fix sha3 and shake hash constructors, remove hash object __init__s ( #12906 )
2024-10-25 07:14:40 -07:00
Sebastian Rittau
701cd065b8
[CI] Switch to macos-latest ( #12897 )
...
macos-12 is deprecated and will be removed:
https://github.com/actions/runner-images/issues/10721
2024-10-24 11:00:11 -07:00
Alex Waygood
9ed47fa8ec
Fix linting issues ( #12898 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-10-24 14:26:37 +01:00
Stephen Morton
c64f9d065b
unnecessary inheritance from ad-hoc protocol ( #12882 )
2024-10-23 07:11:51 -07:00
Stephen Morton
d5fff13c9b
add contextlib._GeneratorContextManagerBase ( #12885 )
...
Actually putting methods on it may be currently infeasible, but
I don't see why it shouldn't exist at all.
2024-10-23 07:11:06 -07:00
Sebastian Rittau
ebdd2c528d
Update mypy to 1.12.0 ( #12859 )
2024-10-19 16:45:38 +01:00
Avasam
559ae9730b
Restore os.path methods overload workaround ( #12837 )
...
Revert "Remove obsolete mypy bug workaround in `abspath()` (#12208 )"
This reverts commit 271df8ef04 .
2024-10-17 13:51:50 -07:00
Jelle Zijlstra
2370b8b9d1
memoryview: re-add inheritance from Sequence, set index and count to None (#12800 )
...
This reverts commit f625e92ae5 .
2024-10-16 07:27:56 -07:00
Stephen Morton
16bab543a3
make os._wrap_close not inherit from TextIOWrapper ( #12774 )
2024-10-14 11:39:30 +02:00
Sebastian Rittau
17d2e5a862
Clean up common stubtest allowlist ( #12770 )
...
* Move all platform and installation differences into a separate
section.
* Split sections for missing items into "should be fixed" and "should
not be fixed".
* Add "TODO" markers to appropriate sections.
2024-10-10 07:53:26 -07:00
Sebastian Rittau
c490871c32
Add 'nis' to stubtest allowlist ( #12769 )
2024-10-10 16:36:07 +02:00
Jun Komoda
1939ed1dc1
ctypes.POINTER(None) returns ctypes.c_void_p (#12754 )
2024-10-10 12:29:37 +02:00
Stephen Morton
f83b6fadbe
add _asyncio ( #12766 )
...
improves naming and inheritance for asyncio.Future and asyncio.Task
related to https://github.com/python/typeshed/issues/3968
2024-10-09 20:55:28 -07:00
Stephen Morton
2b1c7d55b9
re-sort io classes into _io ( #12755 )
...
This version keeps it simple and clean: No changes to class bodies.
The only changes here are moving between files and updating the
naming and inheritance.
Related to #3968 and split from #12740 .
2024-10-08 21:32:10 -07:00
Stephen Morton
3e29e05e4a
Experiment: remove IntFlag from enum.auto ( #12760 )
...
comments in https://github.com/python/typeshed/issues/10384 suggest
that type checkers should special case enum.auto rather than
relying on the IntFlag hack. It's been a while since then, do we
still need it?
2024-10-08 21:24:31 -07:00
Avasam
1f4031cc96
Add __code__ to types.MethodType ( #12749 )
2024-10-08 10:30:49 +02:00
Stephen Morton
39650b43b5
add _sqlite3 module ( #11174 )
...
This aligns with the implementation while giving greater fidelity
to runtime naming and inheritance
Related to https://github.com/python/typeshed/issues/3968 and https://github.com/python/typeshed/issues/11141
2024-10-04 17:28:26 -07:00
sobolevn
d16fe74e1f
Fix _csv.Dialect.__init__ ( #12320 )
2024-10-03 11:33:56 +02:00
Alex Waygood
45f96fe343
Move multiprocessing test-case file to the right place ( #12727 )
2024-10-02 16:36:24 +01:00
Sebastian Rittau
e4c84dfb11
Make email.policy classes generic ( #12724 )
2024-10-02 16:42:07 +02:00
Stephen Morton
4f37d8fff8
add _ssl module ( #11155 )
...
Really all I needed for fixing the inheritance was _ssl._SSLContext.
But then I needed all the other stuff in _ssl, and if I was doing that
I wanted to do a thorough job of it.
Motivation was originally related to https://github.com/python/typeshed/issues/3968 ,
but we're well beyond that now, really.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-10-01 20:10:51 -07:00
Stephen Morton
c43894568f
resort weakref classes ( #11165 )
...
This improves fidelity of naming and inheritance on 3.11+
related to https://github.com/python/typeshed/issues/3968 and https://github.com/python/typeshed/issues/11141
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-10-01 19:50:10 -07:00
Akuli
13a74a5211
Update tkinter.Text.count() for Python 3.13 (Akuli's version) ( #12629 )
2024-09-24 23:08:11 -07:00
Max Muoto
85121de466
Update importlib resources for 3.13 ( #12298 )
2024-09-16 20:21:35 +02:00
Max Muoto
dbe4d32a2a
Add fchmod and lchmod for Windows on 3.13 ( #12662 )
2024-09-15 22:13:09 +02:00
Max Muoto
29c8026910
Add missing winapi functions for 3.13 ( #12658 )
2024-09-14 12:01:42 +02:00
Max Muoto
eaeb56ffcf
Add missing winapi constants for 3.13 ( #12657 )
2024-09-14 11:39:22 +02:00
Max Muoto
9e787769c6
Remove _msi in 3.13 ( #12659 )
2024-09-14 11:20:49 +02:00
Max Muoto
53d4877071
Move __replace__ issues out of triage ( #12656 )
2024-09-13 22:39:34 -07:00
Sebastian Rittau
a29d6710a5
Move platform-specific allowlist entries ( #12644 )
2024-09-12 11:04:07 +02:00
Sebastian Rittau
c7c430857e
stdlib updates for latest Python patch releases ( #12638 )
2024-09-11 17:58:24 +02:00
Max Muoto
089953ed84
Fix doctest for 3.13 ( #12625 )
2024-09-08 12:38:13 +02:00
Max Muoto
ad6eed0777
Add _thread.start_joinable_thread and _thread.lock for 3.13 ( #12588 )
2024-08-29 17:20:02 +02:00
Max Muoto
70e9748f18
Fix _thread.interrupt_main for 3.10+ ( #12586 )
2024-08-29 17:10:17 +02:00
Sebastian Rittau
039c6bcdb1
Use Self for email.message attachments ( #12530 )
...
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Avasam <samuel.06@hotmail.com >
2024-08-29 10:48:32 -04:00
Avasam
3719f02dbf
Using precise code for pyright: ignore and re-enabling various pyright tests ( #12576 )
2024-08-22 03:34:52 +02:00
Sebastian Rittau
5403e4aaeb
Ignore incompatible changes introduced in Python 3.12.5 ( #12531 )
2024-08-15 22:31:58 +02:00
Marti Raudsepp
1ace5718de
Fix inferred type of is_dataclass(Any) ( #12517 )
2024-08-14 23:09:11 +02:00
Max Muoto
dc0b63fd68
Accurate overloads for ZipFile.__init__ ( #12119 )
...
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com >
2024-08-11 16:17:06 -07:00
Akuli
c04a752e24
Create overloads for tkinter.Text.count ( #12395 )
2024-08-11 00:08:24 +03:00
Peter Bierma
ae15dd3158
Restore the deprecated logging.warn() in 3.13 ( #12509 )
2024-08-10 23:52:20 +03:00
Max Muoto
3c7ffb1cc3
Update dircmp for 3.13 ( #12337 )
2024-08-05 13:31:12 -07:00
sobolevn
6f248dfa37
Bump mypy to 1.11.1 ( #12463 )
2024-08-04 23:19:28 -07:00
Max Muoto
0fd6cd211f
Resolve 3.13 issues for ctypes._endian ( #12372 )
2024-08-03 16:04:54 -07:00
sobolevn
1a8c7ebe37
HAVE_NCURSESW is present on macos (#12441 )
2024-07-27 10:36:08 +02:00
Max Muoto
5cd89123e2
Add missing fcntl constants. ( #12409 )
2024-07-25 11:23:28 +02:00
Shantanu
93211a8b5f
Update allowlist for 3.13b4 ( #12413 )
2024-07-23 00:57:53 -07:00
Max Muoto
ee526b14a4
Resolve Traversable.open failure for 3.13 beta 4 ( #12412 )
2024-07-23 00:29:05 -07:00
Max Muoto
2909053047
Add copy.replace for 3.13 ( #12262 )
2024-07-22 18:34:34 -07:00
Max Muoto
b20dd41bec
Add MAP_NORESERVE for Linux ( #12385 )
2024-07-20 21:38:30 -07:00