Avasam
140bba3425
Add comments when subclassing Any ( #9732 )
2023-02-14 14:11:56 +01:00
github-actions[bot]
c437f5ba06
[stubsabot] Bump flake8-bugbear to 23.2.13 ( #9729 )
2023-02-14 01:18:46 +01:00
Andy Doan
70f0f5488a
pyOpenSSL: Introduce PARTIAL_CHAIN constant ( #9727 )
2023-02-13 18:36:14 +01:00
Will Frey
48ef9eace8
Update xml.sax.parse to accept StrPath ( #9708 )
2023-02-13 17:51:47 +01:00
Bart van Merriënboer
8aa9b37a97
[PyYAML] Accept all iterables for dump_all functions ( #9725 )
2023-02-13 13:19:16 +01:00
Avasam
965b3108fe
Further improve and simplify pyright configuration ( #9714 )
2023-02-12 22:42:23 +01:00
Avasam
a768744d51
Type and mark as final module-level dunders not meant to be overwritten in stdlib/ ( #9709 )
2023-02-12 16:15:20 +00:00
Shantanu
35871f4222
Bump DateTimeRange to 2.0.* ( #9720 )
...
Release: https://pypi.org/pypi/DateTimeRange/2.0.0
Homepage: https://github.com/thombashi/DateTimeRange
Diff: https://github.com/thombashi/DateTimeRange/compare/v1.2.0...v2.0.0
2023-02-12 10:40:54 +01:00
Avasam
95789d20b2
Bump pyinstaller to 5.8.* ( #9721 )
...
Release: https://pypi.org/pypi/pyinstaller/5.8.0
Homepage: https://www.pyinstaller.org/
Diff: https://github.com/pyinstaller/pyinstaller/compare/v5.7.0...v5.8.0
2023-02-11 18:00:16 -08:00
Avasam
2930f8c6f0
Set HOMEBREW_NO_INSTALL_CLEANUP to speedup brew installs ( #9713 )
2023-02-11 11:20:20 -08:00
PythonCoderAS
52cf716831
Make datetime classmethods return correct type ( #9706 )
2023-02-10 15:53:17 +00:00
Sebastian Rittau
39487a8bab
[redis] Update to 4.5.1 ( #9697 )
...
Also add a few argument defaults
2023-02-10 11:10:37 +00:00
Anders Kaseorg
8e0b56f12c
Add markdown.treeprocessors.UnescapeTreeprocessor ( #9671 )
...
This replaced the deprecated
`markdown.postprocessors.UnescapePostprocessor` in
https://github.com/Python-Markdown/markdown/pull/1272 .
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2023-02-09 17:22:23 +00:00
Jelle Zijlstra
e17ee201f5
yaml: allow ReadableBuffer in represent_binary ( #9701 )
2023-02-09 16:03:49 +01:00
Sebastian Rittau
ad1e2bede1
[fpdf2] FPDF.add_font() accepts PurePaths ( #9699 )
2023-02-09 05:57:45 -08:00
Anders Kaseorg
afb7704b36
Pillow: Add missing enums from 9.1.0 ( #9698 )
2023-02-09 11:03:50 +01:00
Alex Waygood
9ed39d8796
Use typing_extensions.Self in the stdlib ( #9694 )
2023-02-09 09:12:13 +00:00
Avasam
10086c06a1
Fix Any subclassing in fpdf2 ( #9536 )
2023-02-09 09:39:40 +01:00
Avasam
372073d35b
Use _typeshed.FileDescriptorOrPath in stubs ( #9695 )
2023-02-09 08:30:19 +01:00
Alex Waygood
6d535bf0a3
Enable stubtest for pyserial ( #9692 )
2023-02-09 00:10:33 +01:00
github-actions[bot]
cf6ff75952
[stubsabot] Bump setuptools to 67.2.* ( #9691 )
...
Release: https://pypi.org/pypi/setuptools/67.2.0
Homepage: https://github.com/pypa/setuptools
Changelog: https://setuptools.pypa.io/en/stable/history.html
Diff: https://github.com/pypa/setuptools/compare/v67.1.0...v67.2.0
Stubsabot analysis of the diff between the two releases:
- 0 public Python files have been added.
- 0 files included in typeshed's stubs have been deleted.
- 33 files included in typeshed's stubs have been modified or renamed.
- Total lines of Python code added: 152.
- Total lines of Python code deleted: 111.
If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR
Note that you will need to close and re-open the PR in order to trigger CI
Co-authored-by: stubsabot <>
2023-02-08 00:16:53 +00:00
Nikita Sobolev
62c54da134
Complete python-crontab ( #9306 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-02-07 05:21:06 -08:00
Alex Waygood
32c575d980
subprocess.check_call: executable defaults to None (#9689 )
...
This argument is forwarded on to `Popen.__init__`, like most of the other arguments. It can be `None`, just like the `executable` parameter for all the other `subprocess` functions:
```pycon
>>> import subprocess
>>> subprocess.check_call(["python", "-c", "1/1"], executable=None)
0
>>> subprocess.check_call(["python", "-c", "1/0"], executable=None)
Traceback (most recent call last):
File "<string>", line 1, in <module>
ZeroDivisionError: division by zero
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\alexw\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['python', '-c', '1/0']' returned non-zero exit status 1.
```
2023-02-07 12:33:12 +00:00
Alex Waygood
53747b264e
Stdlib: add 'obvious' default values ( #9688 )
2023-02-07 13:00:40 +01:00
Alex Waygood
60789273a2
Improve pyright verification of third-party test cases in CI ( #9650 )
...
Co-authored-by: Avasam <samuel.06@hotmail.com >
2023-02-07 11:53:54 +00:00
Sebastian Rittau
565a1a07ad
Remove note about Optional still being necessary sometimes ( #9687 )
2023-02-07 03:03:22 -08:00
Alex Waygood
0ef9c3f8e8
Enable flake8-pyi's Y037 ( #9686 )
2023-02-06 19:01:02 -08:00
Alex Waygood
c4c4bee8aa
Remove a no-longer-needed # noqa ( #9685 )
2023-02-07 00:43:53 +00:00
Avasam
29d9aa9b28
Complete stubtest and fix Any subclassing in tqdm ( #9525 )
2023-02-07 00:15:44 +00:00
Alex Waygood
efee70abfa
Bump mypy to 1.0 ( #9684 )
2023-02-06 15:57:17 -08:00
Nikita Sobolev
f7cb7f33b2
Use OSError instead of IOError ( #9683 )
2023-02-06 18:56:32 +00:00
Nikita Sobolev
c96079f0df
urllib.HTTPError.headers is a settable property (#9682 )
2023-02-06 18:56:08 +00:00
Alex Waygood
5157ff86da
unicodedata: overload many functions and methods (#9656 )
2023-02-06 07:04:26 -08:00
Alex Waygood
262f2067aa
Update paramiko stubs to 3.0.* ( #9667 )
2023-02-06 07:01:50 -08:00
Alex Waygood
191afbc559
Update invoke stubs to 2.0.* ( #9669 )
2023-02-06 06:54:21 -08:00
Jelle Zijlstra
c65a87481d
colorama: Preserve input type for wrap_stream ( #9677 )
2023-02-06 06:50:21 -08:00
Alex Waygood
ccb250940a
Improve collections stubs ( #9674 )
2023-02-06 13:54:15 +01:00
Eclips4
cd5f976968
keyword: mark kwlist and softkwlist as Final (#9680 )
2023-02-05 13:44:59 +00:00
Marc Mueller
88a761ed4e
Export DataclassInstance protocol from _typeshed ( #9676 )
2023-02-04 15:58:11 +00:00
Alex Waygood
b9270da7b0
Improve readability of stdlib/_winapi.pyi ( #9673 )
2023-02-04 06:55:47 -08:00
Jukka Lehtosalo
bba1c67610
Update mypy_extensions stubs to 1.0.x ( #9675 )
2023-02-04 12:54:39 +00:00
Alex Waygood
1e3d762a12
stdlib: use bool for annotations where the default is False ( #9672 )
2023-02-04 11:58:18 +00:00
Akuli
37a180ef7b
Use octal for mode defaults ( #9670 )
2023-02-03 19:12:53 +00:00
Alex Waygood
48cffeeea6
Update caldav stubs to 1.0.* ( #9668 )
2023-02-03 06:38:16 -08:00
Juan Amari
ce8c82a27c
[redis] Initial stubs for redis.asyncio.cluster ( #9468 )
...
Co-authored-by: Nikita Sobolev <mail@sobolevn.me >
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2023-02-03 13:27:39 +00:00
Alex Waygood
f94d496626
Update cachetools stubs to 5.3.* ( #9666 )
2023-02-03 12:20:38 +00:00
Alex Waygood
4afda1dbe3
Rework CONTRIBUTING.md: simple parameter defaults are now accepted and encouraged ( #9665 )
2023-02-03 11:59:07 +00:00
hasier
c2e638e222
Fix python-jose unverified jws and jwt functions ( #9662 )
2023-02-03 11:53:00 +00:00
Sebastian Rittau
dc389eafe7
Update setuptools to 67.1 ( #9664 )
...
Replace some instances of `Any` with `Incomplete` or proper types.
2023-02-03 11:43:35 +00:00
Sebastian Rittau
cd64563dd8
Rework the "Incomplete stubs" section ( #9548 )
...
Also move it to the "Conventions" section due its scope change.
Closes : #8955
2023-02-03 11:58:25 +01:00