Jelle Zijlstra
340eb1264b
unicodedata: accepts ReadOnlyBuffer ( #9106 )
2022-11-06 21:17:06 -08:00
Jelle Zijlstra
1d4eed1c9d
zipfile: improve bytes handling ( #9109 )
...
Technically some uses of `pwd` accept more types, but others
use `isinstance()` to enforce only `bytes`. It seems better to
keep the same type throughout the module.
2022-11-06 21:16:27 -08:00
Jelle Zijlstra
6639e2e14c
sqlite3: Blob.write accepts buffer ( #9097 )
2022-11-06 21:06:55 -08:00
Jonah Lawrence
157d818106
Added types for babel.core and babel.numbers ( #9111 )
2022-11-06 15:03:28 -08:00
Alex Waygood
658b6e7de0
PyInstaller: Fix DeprecationWarning when parsing the stub using ast.parse() (#9112 )
...
```python
>>> import ast, warnings
>>> warnings.filterwarnings("always")
>>> with open("typeshed/stubs/pyinstaller/pyi_splash/__init__.pyi", encoding="utf-8") as file:
... source = file.read()
...
>>> ast.parse(source)
<unknown>:11: DeprecationWarning: invalid escape sequence '\u'
<ast.Module object at 0x0000027EAF6D3AF0>
```
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-11-06 14:50:38 -08:00
Nikita Sobolev
5751b467e0
Remove ssl_match_hostname from pyright exclude ( #9116 )
2022-11-06 14:02:24 -08:00
Nikita Sobolev
4bff3e240b
Remove annoy from pyright excludelist ( #9114 )
2022-11-06 19:45:25 +00:00
Nikita Sobolev
449d8254d6
Remove aiofiles/aiofiles/threadpool/utils.pyi from pyright exclude ( #9113 )
2022-11-06 19:19:10 +00:00
Jelle Zijlstra
1f7648976c
unittest: cannot use bytes regexes ( #9107 )
...
```
>>> from unittest.case import TestCase
>>> c = TestCase()
>>> with c.assertRaisesRegex(Exception, b"x"): 1/0
...
ZeroDivisionError: division by zero
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/unittest/case.py", line 274, in __exit__
if not expected_regex.search(str(exc_value)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: cannot use a bytes pattern on a string-like object
```
2022-11-05 14:14:53 -07:00
Jelle Zijlstra
3d64286f9e
winsound: accepts buffers ( #9108 )
...
b5f711185b/PC/winsound.c (L93)
2022-11-05 13:52:31 -07:00
Nikita Sobolev
10f05d3fb6
Remove aiofiles/tempfile/temptypes.pyi from pyright exclude ( #9104 )
2022-11-05 07:10:50 -07:00
Jelle Zijlstra
0e1ca279a4
struct: add missing pos-only markers ( #9099 )
2022-11-04 23:00:33 -07:00
Jelle Zijlstra
f678fac75a
tokenize: you can tokenize bytearrays too ( #9102 )
2022-11-04 22:59:05 -07:00
Jelle Zijlstra
cff08b674a
isort: Add more to extra_standard_library ( #9098 )
2022-11-04 22:56:40 -07:00
Jelle Zijlstra
7ef7029f88
smtplib: Improve bytes handling ( #9094 )
2022-11-04 20:08:10 -07:00
Nikita Sobolev
9f0d0b9af7
zipimport: improve bytes handling ( #9087 )
2022-11-04 17:58:59 -07:00
Samuel T
98dac4c926
pywin32: Improve some types ( #9089 )
2022-11-04 17:48:53 -07:00
github-actions[bot]
4329404b1c
[stubsabot] Bump SQLAlchemy to 1.4.43 ( #9092 )
...
Release: https://pypi.org/pypi/SQLAlchemy/1.4.43
Homepage: https://www.sqlalchemy.org
2022-11-05 00:40:39 +00:00
Jonah Lawrence
26841a8353
Add new functions for Babel 2.11.0 ( #9091 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-11-04 23:23:27 +00:00
Jelle Zijlstra
7299b07790
multiprocessing: improve bytes handling ( #9085 )
2022-11-04 10:58:58 +01:00
Nikita Sobolev
3ac147cf67
Mark zxcvbn as completed ( #9088 )
2022-11-04 09:16:59 +00:00
Jelle Zijlstra
2199115822
dateparser: add new parameter ( #9081 )
...
Fixes #9079
2022-11-03 19:53:54 -07:00
Nikita Sobolev
1d37b54441
Remove Send2Trash from pyright's exclude ( #8944 )
2022-11-03 13:41:37 -07:00
Nikita Sobolev
e68567a1b4
tarfile: improve bytes handling ( #9076 )
2022-11-03 10:15:46 -07:00
Nikita Sobolev
86f9d93003
Update pyright to 1.1.278 ( #9077 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-11-03 15:32:10 +00:00
Jelle Zijlstra
a17fa5001a
pickletools: accepts bytearray, use protocol from _typeshed ( #9073 )
2022-11-03 16:20:03 +01:00
Nikita Sobolev
27caa8f221
Mark hdbcli as complete ( #8904 )
2022-11-03 07:38:51 -07:00
Jelle Zijlstra
2f3f8da90a
msvcrt: improve bytes handling ( #9071 )
2022-11-03 12:11:36 +01:00
Jelle Zijlstra
43631078f0
importlib: improve bytes handling ( #9070 )
2022-11-03 12:00:24 +01:00
Jelle Zijlstra
82bf494534
quopri: improve types ( #9074 )
2022-11-03 11:37:59 +01:00
Alex Waygood
22c5afa2d2
http.server.SimpleHTTPRequestHandler: Fix version branching ( #9075 )
2022-11-03 11:17:50 +01:00
Jelle Zijlstra
6b702452b6
http: improve types ( #9055 )
2022-11-03 09:55:56 +01:00
Jelle Zijlstra
460158fc40
imaplib: _Authenticator also works with bytearray ( #9056 )
2022-11-02 20:55:41 -07:00
Alex Waygood
d1d1afbe3a
Bump flake8-bugbear; ignore flake8-bugbear in stub files ( #9069 )
2022-11-02 12:18:00 -07:00
Alex Waygood
401a7b929e
Bump various test dependencies; pin Python to <3.10 in CI to workaround pytype incompatibility ( #9068 )
2022-11-02 18:44:48 +00:00
Nikita Sobolev
d317458af6
Bump jsonschema to 4.17.* ( #9066 )
2022-11-02 17:41:14 +00:00
Nikita Sobolev
f972bdfd96
io, codecs: improve bytes handling ( #9059 )
2022-11-02 09:32:06 -07:00
Nikita Sobolev
ab9988a5ed
[stubsabot junior] Bump babel to 2.11.* ( #9064 )
2022-11-02 01:15:36 -07:00
Shantanu
a3ce512095
typing: remove metaclass from Sized ( #9058 )
...
as per https://github.com/python/typeshed/pull/8977#issuecomment-1297872394
2022-11-01 18:38:52 -07:00
Sebastian Rittau
e7e94dd101
Make unittest.patch.* methods static ( #7543 )
2022-11-01 13:09:56 +01:00
Sebastian Rittau
96daaf60bf
Remove references to master branch ( #9060 )
2022-11-01 13:02:38 +01:00
Sebastian Rittau
3aaf6b9999
'master' branch was updated to 'main' ( #9045 )
2022-11-01 12:57:57 +01:00
Nikita Sobolev
a7cf6144de
Complete passpy stubs ( #8959 )
2022-11-01 12:37:21 +01:00
Jelle Zijlstra
62ddebb65c
fcntl: fix fcntl arg type (s#) ( #9052 )
2022-11-01 12:34:04 +01:00
Jelle Zijlstra
4d40fc6c8a
logging: StreamHandler.send takes ReadableBuffer ( #9057 )
2022-11-01 11:52:30 +01:00
Jelle Zijlstra
7ab933f3c3
email: improve bytes handling ( #9032 )
2022-11-01 10:13:30 +01:00
Jelle Zijlstra
3e46f9a9ee
dbm: fix bytes handling ( #9030 )
2022-11-01 10:10:37 +01:00
Jelle Zijlstra
39936cd18a
hmac: also support bytearray in 3.7 branch ( #9054 )
2022-10-31 23:28:53 -07:00
Jelle Zijlstra
524cd53d73
gzip: remove Any usage ( #9053 )
2022-10-31 23:14:12 -07:00
Nikita Sobolev
b91ebd3096
Remove pytz from pyrights exclude ( #9041 )
2022-10-31 21:08:41 -07:00