Jelle Zijlstra
c0a0c34020
Use PEP 688 ( #10225 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-05-27 19:55:30 -07:00
Alex Waygood
257e287fec
Stdlib: correct many parameter names ( #9815 )
2023-03-04 09:53:12 +00:00
Alex Waygood
9ed39d8796
Use typing_extensions.Self in the stdlib ( #9694 )
2023-02-09 09:12:13 +00:00
Avasam
c70d303985
Audit stdlib object annotations ( #9519 )
2023-01-17 15:40:00 +00:00
Samuel T
796bdc2eb0
Improve accuracy of six byte index methods ( #9117 )
2022-11-09 19:22:33 -08:00
Shantanu
5b1ef8b119
mmap: add MADV_FREE on darwin ( #7923 )
...
Co-authored-by: hauntsaninja <>
2022-05-22 15:30:09 -07:00
Alex Waygood
97a74bc1aa
Import from collections.abc wherever possible ( #7635 )
2022-04-18 12:50:37 +02:00
Alex Waygood
db6f912c77
Improve mmap.mmap.__enter__ ( #7461 )
...
It returns `Self` at runtime, not `mmap.mmap`, so inheriting from `AbstractContextManager` doesn't really do anything for us.
2022-03-08 07:47:56 -08:00
Alex Waygood
947724a5cb
stdlib: Add several missing @abstractmethod decorators ( #7443 )
2022-03-06 16:41:13 -08:00
Alex Waygood
f4967618dd
Fix positional-only differences in many stdlib modules ( #7226 )
2022-02-15 15:14:06 +01:00
Shantanu
b88a6f19cd
Upgrade black version ( #7089 )
2022-01-30 16:27:06 -08:00
Versus
556e623a81
Add mmap.MAP_POPULATE from 3.10 ( #6964 )
2022-01-20 14:30:27 +01:00
Alex Waygood
a9cfd23fc3
Further reduce use of deprecated contextlib aliases ( #6370 )
2021-11-23 15:25:39 -08:00
Akuli
ee487304d7
Big diff: Use new "|" union syntax ( #5872 )
2021-08-08 11:05:21 +02:00
Charly C
389b92cb04
fix the stub files for the stdlib mmap module ( #5705 )
...
In Python 3:
- The `mmap` type is `Iterable[int]`, not `Iterable[bytes]`.
- The `read_byte` method returns an `int`, and the `write_byte` method only accepts an `int` as its first and only argument.
- The `__setitem__` method accepts any `ReadableBuffer` object, not just `bytes`.
In both Python 2 and 3:
- The `__delitem__` method always raises a `TypeError`, so the proper return type is `NoReturn`.
- The `mmap` type isn't generic, so I've simplified the stubs by removing the unnecessary `_mmap` class.
2021-06-29 08:01:32 -07:00
Akuli
17dcea4a68
Akuli and srittau: Remove Python 2 branches from Python 3 stubs ( #5461 )
...
* run script and do some manual changes (Akuli)
* do the whole thing manually (srittau)
* merge changes (Akuli)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2021-05-15 15:33:39 +03:00
hatal175
244fc622e6
Add workflow stubtests for macos ( #5384 )
...
* Add macos to stubtest
* Add general darwin stubtest exception file
* Adding exceptions and platform ifs
2021-05-09 23:24:00 +03:00
hatal175
2dc02ae8a9
Fix stubtest issues ( #5360 )
...
* Fix some stubtest issues
* Remove MADV_SOFT_OFFLINE
2021-05-07 19:10:03 +03:00
Ivan Levkivskyi
16ae4c6120
Re-organize directory structure ( #4971 )
...
See discussion in #2491
Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com >
2021-01-27 12:00:39 +00:00