Jelle Zijlstra
583b600db0
asyncio: improve bytes handling ( #9013 )
2022-10-29 00:36:44 +02:00
Jelle Zijlstra
b8659e69f5
array: one more bad bytes type ( #9022 )
2022-10-28 14:18:19 -07:00
Nikita Sobolev
49d3393732
imaplib: fix bytes usage ( #9021 )
2022-10-28 14:06:55 -07:00
Jelle Zijlstra
b5c4580d52
CONTRIBUTING: Note no bytearray promotion ( #9005 )
...
Closes #9001
2022-10-28 13:48:59 -07:00
Shantanu
4c48fd63b1
pyexpat: fix bytes usage ( #9017 )
2022-10-28 13:41:24 -07:00
Shantanu
c5fe795c91
xmltodict: improve parse input types ( #9018 )
2022-10-28 21:46:46 +02:00
Nikita Sobolev
d3a87eb45d
Improve types and bytes usage of pathlib ( #9016 )
2022-10-28 21:45:41 +02:00
Shantanu
093c58bfa2
ast: parse accepts PathLike filename ( #9020 )
2022-10-28 11:18:38 -07:00
Shantanu
7edad955a2
typed-ast: fix get_docstring, allow buffer ( #9019 )
2022-10-28 11:05:16 -07:00
Jelle Zijlstra
05acb6c5c3
_msi: improve types ( #9008 )
2022-10-28 15:36:57 +02:00
Jelle Zijlstra
287fce4872
ssl, socket, array: Improve bytes handling ( #8997 )
2022-10-28 15:35:51 +02:00
Jelle Zijlstra
bcd876f77e
_codecs: Fix buffer parameters ( #9003 )
2022-10-28 11:25:21 +02:00
Jelle Zijlstra
f792b14e7f
_tcl: fix bytes usage ( #9010 )
2022-10-28 11:07:56 +02:00
Jelle Zijlstra
cb90e9d3a5
bz2: fix bytes parameters ( #9015 )
2022-10-28 11:01:03 +02:00
Jelle Zijlstra
97d8519f33
base64: fix a85decode param type ( #9014 )
2022-10-27 21:07:10 -07:00
Jelle Zijlstra
6438c7355c
_winapi: takes a ReadableBuffer ( #9011 )
2022-10-27 20:24:45 -07:00
Jelle Zijlstra
e8e69efd2b
antigravity: takes a ReadableBuffer ( #9012 )
2022-10-27 20:19:24 -07:00
Jelle Zijlstra
51c92d8975
_posixsubprocess: improve types ( #9009 )
2022-10-27 20:00:21 -07:00
Jelle Zijlstra
e0aa539854
_curses: improve bytes handling ( #9007 )
2022-10-27 19:48:08 -07:00
Jelle Zijlstra
5bcd4c1a93
ast: parse takes a ReadableBuffer ( #9002 )
...
parse() is basically just a wrapper around compile(), which we
already have as taking ReadableBuffer.
2022-10-27 13:28:02 -07:00
Alex Waygood
8d941f0e53
Remove unnecessary pyright: ignore ( #9000 )
2022-10-27 08:27:28 -07:00
Jelle Zijlstra
739711e947
lzma: Takes ReadableBuffer, not bytes ( #8996 )
2022-10-27 07:02:57 -07:00
Shantanu
86ada9e41a
io: use ReadableBuffer for BytesIO ( #8995 )
2022-10-27 11:42:11 +02:00
github-actions[bot]
f66da87c84
[stubsabot] Bump flake8-bugbear to 22.10.27 ( #8992 )
...
Release: https://pypi.org/pypi/flake8-bugbear/22.10.27
Homepage: https://github.com/PyCQA/flake8-bugbear
Changelog: https://github.com/PyCQA/flake8-bugbear#change-log
Diff: https://github.com/PyCQA/flake8-bugbear/compare/22.10.25...22.10.27
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.
- 1 file included in typeshed's stubs has been modified or renamed: `bugbear.py`.
- Total lines of Python code added: 193.
- Total lines of Python code deleted: 28.
2022-10-27 01:29:19 +01:00
LeeeeT
cf9bdc2d98
Make the first argument of float.__new__ positional-only ( #8991 )
...
Closes #8990
2022-10-26 15:42:17 -07:00
Nikita Sobolev
fd75bc21fc
Use 3.11 instead of 3.11-dev ( #8983 )
2022-10-26 15:52:24 +02:00
Anton Grübel
84682a1d54
Add a couple of missing type hints in pyyaml.constructor ( #8965 )
2022-10-26 09:15:35 +02:00
Shantanu
7ba0479d75
colorama: fixes for latest version ( #8987 )
...
Fixes #8986
2022-10-25 17:57:01 -07:00
Sebastian Rittau
b2d6d3c935
Update distutils stubtest allowlists for Python 3.11 release ( #8985 )
...
Closes : #8984
2022-10-26 00:18:09 +02:00
Brendan Graham
f4ef058169
google.protobuf: Add an __init__ stub to fix type checking ( #8982 )
2022-10-25 13:20:43 -07:00
Samuel T
8ca0394ead
Bump pyinstaller to 5.6.* ( #8981 )
2022-10-25 06:39:32 -07:00
Nikita Sobolev
5bbba5d008
Collection is Sized (#8977 )
2022-10-25 06:08:28 -07:00
github-actions[bot]
e15e007d75
[stubsabot] Bump flake8-bugbear to 22.10.25 ( #8980 )
...
Release: https://pypi.org/pypi/flake8-bugbear/22.10.25
Homepage: https://github.com/PyCQA/flake8-bugbear
Changelog: https://github.com/PyCQA/flake8-bugbear#change-log
Diff: https://github.com/PyCQA/flake8-bugbear/compare/22.9.23...22.10.25
Stubsabot analysis of the diff between the two releases:
- 1 public Python file has been added: `tests/b027.py`.
- 0 files included in typeshed's stubs have been deleted.
- 1 file included in typeshed's stubs has been modified or renamed: `bugbear.py`.
- Total lines of Python code added: 194.
- Total lines of Python code deleted: 35.
2022-10-25 01:35:20 +01:00
github-actions[bot]
ec39d71e61
[stubsabot] Bump flake8-typing-imports to 1.14.* ( #8978 )
...
Release: https://pypi.org/pypi/flake8-typing-imports/1.14.0
Homepage: https://github.com/asottile/flake8-typing-imports
Diff: https://github.com/asottile/flake8-typing-imports/compare/v1.13.0...v1.14.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.
- 1 file included in typeshed's stubs has been modified or renamed: `flake8_typing_imports.py`.
- Total lines of Python code added: 487.
- Total lines of Python code deleted: 0.
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 <>
2022-10-25 01:34:52 +01:00
Kyle Benesch
6aae57783a
Fix pkg_resources.split_sections ( #8975 )
...
This function is currently documented as returning a list of lines as
the 2nd pair value. It does not return plain str here.
2022-10-24 12:58:31 -07:00
Nikita Sobolev
45ccfbc9f3
Remove tree-sitter from pyright's exclude ( #8946 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-10-24 09:48:54 -07:00
Alex Waygood
8b9b96c9f8
datetime.timedelta: Remove explicit inheritance from SupportsAbs (#8972 )
...
Fixes #8971
2022-10-23 15:28:44 -07:00
Shantanu
19f57a6e57
Remove tzlocal from pyright's exclude ( #8969 )
2022-10-23 14:30:57 +02:00
Alex Waygood
dc7fdc6f5d
Fix invoke regression ( #8950 )
...
* Fix `invoke` regression
2022-10-21 18:04:22 +01:00
Nikita Sobolev
327ae91627
ValuesView is a Collection, not Iterable (#8953 )
...
See https://github.com/python/cpython/issues/98500 and 49f61068f4/Lib/_collections_abc.py (L893)
2022-10-21 09:47:44 -07:00
Peter Schutt
25810e1b11
Fixes redis.asyncio.client: AsyncIterator cannot be async def in stubs. ( #8961 )
...
Without the `yield` statement in the method body, these are interpreted by mypy as coroutines that return an `AsyncIterator`.
Closes #8960
2022-10-21 09:44:51 -07:00
Nikita Sobolev
7ed599e848
Remove parts of tkinter from pyright exclude ( #8958 )
2022-10-21 19:18:04 +03:00
Nikita Sobolev
50da0aa19c
Add $schema to pyrightconfig.json ( #8957 )
2022-10-21 10:47:45 +02:00
Sebastian Rittau
fb2eb406a7
dateparser: add negative argument to get_date_from_timestamp ( #8954 )
...
Closes #8952
2022-10-21 00:45:53 -07:00
Nipunn Koorapati
f43ee406f1
Bump mypy-protobuf to 3.4.0 ( #8951 )
2022-10-21 01:26:57 +01:00
Nipunn Koorapati
bcad078264
types-protobuf: Bump the rev of protobuf supported to 4.21.8 (#8937 )
2022-10-20 23:23:53 +01:00
Nikita Sobolev
918f2266da
Remove editdistance from pyright's exclude ( #8941 )
2022-10-20 07:15:09 -07:00
Nikita Sobolev
c7983ec8d5
Remove mock from pyright's exclude ( #8942 )
2022-10-20 07:11:11 -07:00
Nikita Sobolev
b0b0cc6474
Remove pyvmomi from pyright's exclude ( #8943 )
2022-10-20 07:10:34 -07:00
Alex Waygood
122bceeade
CI: Use macOS-11 for stdlib stubtest ( #8949 )
2022-10-20 15:45:18 +02:00