Alex Waygood
f2ee9e9368
Stubtest: fixes for py312beta4 ( #10449 )
...
* Revert "json: add AttrDict in py312 (#10212 )"
This reverts commit 7994f165da .
* TaskGroup updates
2023-07-12 21:21:05 +01:00
Nikita Sobolev
f843922df8
datetime: Remove unused stubtest allowlist entry for py312 (#10277 )
2023-07-12 21:06:06 +01:00
David Robertson
338e067ec4
Pillow: mark MAX_IMAGE_PIXELS as non-final ( #10445 )
2023-07-12 15:11:48 +01:00
Eugene Toder
cfc5425cb3
Add defaultdict.__(r)or__; improve ChainMap.__(r)or__ and UserDict.__(r)or__ ( #10427 )
...
Add __or__ to defaultdict
Also, add overloads with Self type to other __[r]or__ methods.
2023-07-11 19:39:12 +01:00
Sebastian Rittau
19992e6212
Mark some errnos as darwin- or solaris-only ( #10440 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-07-11 17:09:40 +01:00
Jisuk Byun
d14ab09375
Fix and comment type mismatches in email library hints ( #10437 )
2023-07-11 00:07:04 -07:00
github-actions[bot]
0ab25cbf67
[stubsabot] Bump braintree to 4.21.* ( #10433 )
...
Release: https://pypi.org/pypi/braintree/4.21.0
Homepage: https://developer.paypal.com/braintree/docs/reference/overview
2023-07-11 07:50:34 +01:00
github-actions[bot]
d0573dfc44
[stubsabot] Bump flake8-bugbear to 23.7.10 ( #10434 )
...
Release: https://pypi.org/pypi/flake8-bugbear/23.7.10
Homepage: https://github.com/PyCQA/flake8-bugbear
Changelog: https://github.com/PyCQA/flake8-bugbear#change-log
Diff: https://github.com/PyCQA/flake8-bugbear/compare/23.6.5...23.7.10
Stubsabot analysis of the diff between the two releases:
- 1 public Python file has been added: `tests/b034.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: 230.
- Total lines of Python code deleted: 91.
2023-07-11 07:49:46 +01:00
Alex Waygood
81b8211d0e
Revert "Remove un-needed __hash__ methods from stdlib ( #8465 )" ( #10426 )
...
Reverts https://github.com/python/typeshed/pull/8465
Fixes https://github.com/python/typeshed/issues/10424
Closes https://github.com/python/typeshed/pull/10425
https://github.com/python/typeshed/pull/8465 caused regressions: see https://github.com/python/typeshed/issues/10424 and https://github.com/python/mypy/issues/13800 . Since it didn't fix any known problems (just some stylistic nits that we had), let's just revert the PR.
2023-07-09 08:43:32 -07:00
Ali Hamdan
aed8c3fe1c
Replace aliases by builtins.* in uuid ( #10422 )
...
These aliases were used because the class has properties called
`int` and `bytes`. I think it is better to use the shadowed types
from the builtins module. This should not change anything from the
type checking side but it improves the IDE experience[^1].
[^1]: I was using uuid recently and the aliases showed up in vscode,
I thought they were uuid special types and had to look in the stub to
know what they are.
2023-07-08 11:58:50 +01:00
Nikita Sobolev
e7ba0327e1
Remove SQLAlchemy stubs ( #10389 )
...
Co-authored-by: AlexWaygood <alex.waygood@gmail.com >
2023-07-08 10:24:59 +01:00
Shantanu
507e714b9e
contextvars: rm -rf ( #10420 )
2023-07-07 11:26:07 -07:00
Shantanu
5ad520e27b
Mark contextvars stubs as no longer updated ( #10419 )
2023-07-07 00:16:56 -07:00
Sergio
5bd3cf3b9e
Stripe: add shipping_rate to __init__.py ( #10416 )
2023-07-06 22:00:11 +01:00
Sergio
4242eadc1e
stripe: add shipping_rate type ( #10323 )
...
* add shipping_rate type
* remove redundant method
2023-07-06 15:10:14 +01:00
Sebastian Rittau
f96505474d
Bump Pillow to 10.0.* ( #10411 )
2023-07-06 15:05:38 +01:00
Sebastian Rittau
edff8874da
[Pillow] Replace Any with Incomplete ( #10409 )
2023-07-06 14:48:50 +01:00
Sebastian Rittau
1e6b8a9b88
[Pillow] Update TiffImagePlugin for Python 3.11 ( #10399 )
...
Also type the methods forwarded from Fraction and replace
`Any` with `Incomplete`.
2023-07-06 15:34:49 +02:00
Alex Waygood
b3e60dc447
Remove stubs for typed-ast ( #10415 )
2023-07-06 01:02:01 -07:00
Alex Waygood
597810e46e
Mark types-typed-ast as no longer updated ( #10410 )
2023-07-05 10:08:10 -07:00
John Villalovos
65a6a195f2
Pillow: Add tuple[int, int] to _Color TypeAlias ( #10407 )
2023-07-05 11:31:30 +03:00
Simão Afonso @ Powertools Tech
7646d38302
tkinter: Add missing "angle" argument to Canvas.create_text ( #10404 )
2023-07-04 22:00:48 +03:00
Damien Couppé
fc7d4722ea
Redis: Add missing types for id in xadd ( #10403 )
2023-07-04 14:03:02 +02:00
Nikita Sobolev
702226e1fd
Add missing TCP_CONNECTION_INFO to socket module ( #10402 )
2023-07-04 12:32:38 +02:00
Shantanu
614aa1a2ba
Bring back a few setuptools._distutils files ( #10401 )
2023-07-04 12:11:37 +02:00
Nikita Sobolev
31dca1d660
Update inspect for Python3.12 ( #10398 )
2023-07-03 14:54:19 +02:00
Andrew Sansom
18d45d62aa
Broaden collections.Counter __iadd__, __isubtract__, __iand__, and __ior__ to accept any mapping ( #10397 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-07-03 08:27:17 +01:00
Nikita Sobolev
3d352e85e5
Use proper return types for __await__ methods in redis.asyncio.client ( #10379 )
2023-07-01 18:40:40 +01:00
Nikita Sobolev
8162faa934
Fix signature of http.client.HTTPSConnection for Python 3.12 ( #10392 )
2023-07-01 18:31:47 +01:00
Nikita Sobolev
a8051fb2c4
Add _generate_next_value_ to StrEnum ( #10390 )
...
Fixes https://github.com/python/typeshed/issues/10384
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-07-01 18:28:09 +01:00
Alex Waygood
39fd112f3e
Further improve non-types dependency handling in pytype_test.py ( #10393 )
2023-07-01 00:24:38 +01:00
Alex Waygood
7fdd05003a
pytype_test.py: Use importlib.metadata instead of pkg_resources ( #10391 )
2023-06-30 21:37:06 +01:00
Alex Waygood
cd0388439a
Remove stubs for annoy ( #10388 )
2023-06-30 11:40:45 +02:00
Alex Waygood
b6a422112b
Pin typing_extensions to 4.6.3 ( #10385 )
...
Our CI is very red on `main` at the moment, due to the release of typing_extensions 4.6.3 (see #10383 ). #10344 is the fix for this, but that PR breaks pytype. For now, let's just pin to 4.6.3 to get CI green again.
2023-06-29 06:24:30 -07:00
github-actions[bot]
201940cdc1
[stubsabot] Mark annoy as obsolete since 1.17.1 ( #10374 )
...
Release: https://pypi.org/pypi/annoy/1.17.1
Homepage: https://github.com/spotify/annoy
Diff: https://github.com/spotify/annoy/compare/v1.17.0...v1.17.1
Co-authored-by: stubsabot <>
2023-06-29 01:27:47 +01:00
Nikita Sobolev
ae5b28ff37
Stricter pyright checks for inifile ( #10382 )
2023-06-28 22:57:25 +01:00
Naveed Jooma
aab9fdd86a
[PIL] Make return type of PyDecoder.decode a tuple ( #10381 )
2023-06-28 13:47:49 -07:00
Alex Waygood
5ee46bd291
Bump various test dependencies ( #10378 )
2023-06-28 14:22:49 +01:00
Sam Bull
0869b430d6
asyncio: start_tls() can return None (#10346 )
2023-06-28 11:40:19 +01:00
Sebastian Rittau
1e25866b23
Improve pytype compatibility handling ( #10377 )
2023-06-28 12:29:13 +02:00
Nikita Sobolev
1d59c5cb13
Bump PyMySQL to 1.1.* ( #10376 )
2023-06-28 12:28:11 +02:00
Alex Waygood
7289fb9f77
Stubsabot: Fix incorrect diff link when a py.typed was added in a micro version ( #10375 )
2023-06-28 11:48:11 +02:00
github-actions[bot]
d5f0d155d1
[stubsabot] Mark flake8-plugin-utils as obsolete since 1.3.3 ( #10373 )
...
Release: https://pypi.org/pypi/flake8-plugin-utils/1.3.3
Homepage: https://pypi.org/project/flake8-plugin-utils
Co-authored-by: stubsabot <>
2023-06-28 09:24:41 +01:00
Alex Waygood
d32754c336
Stubsabot: mark stubs as obsolete, even if the py.typed file was added in a micro version ( #10368 )
2023-06-27 20:17:17 +01:00
Sebastian Rittau
d2c87ac97d
Bump redis to 4.6.0 ( #10360 )
...
Closes : #10359
2023-06-27 19:25:52 +01:00
Avasam
93b4060cd4
[PyInstaller] TOCs are not often lists of TOCs ( #10366 )
2023-06-27 16:36:51 +02:00
David Salvisberg
8bc4be3868
Fixes incorrect return value for MultiDict.get without default param ( #10367 )
2023-06-27 06:53:32 -07:00
github-actions[bot]
b8ab395d4b
[stubsabot] Bump tree-sitter-languages to 1.6.* ( #10364 )
...
Release: https://pypi.org/pypi/tree-sitter-languages/1.6.1
Homepage: https://github.com/grantjenks/py-tree-sitter-languages
Diff: https://github.com/grantjenks/py-tree-sitter-languages/compare/v1.5.0...v1.6.1
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: `tree_sitter_languages/__init__.py`.
- Total lines of Python code added: 68.
- Total lines of Python code deleted: 5.
2023-06-27 01:21:57 +01:00
github-actions[bot]
43720bcbab
[stubsabot] Bump Flask-Cors to 4.0.* ( #10363 )
...
Release: https://pypi.org/pypi/Flask-Cors/4.0.0
Homepage: https://github.com/corydolphin/flask-cors
Diff: https://github.com/corydolphin/flask-cors/compare/3.0.10...v4.0.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.
- 5 files included in typeshed's stubs have been modified or renamed: `flask_cors/__init__.py`, `flask_cors/core.py`, `flask_cors/decorator.py`, `flask_cors/extension.py`, `flask_cors/version.py`.
- Total lines of Python code added: 50.
- Total lines of Python code deleted: 41.
2023-06-27 01:20:14 +01:00
Alex Waygood
1b2e4091db
Bump mypy to 1.4.1 ( #10351 )
2023-06-25 16:45:09 -07:00