Jisuk Byun
60a95da159
Fix unsound return type hints in urllib module ( #10470 )
...
* Fix unsound return type hints in urllib module
Closes #10466
* Fix return type of ftplib.FTP.ntransfercmd
Related to #10466
2023-07-18 17:46:28 +01:00
Nikita Sobolev
95b268999c
pdb: py312 updates (#10471 )
2023-07-18 17:33:27 +01:00
Bruno Cabral
4088b8425f
tkinter: Treeview identifiers can be int ( #10468 )
2023-07-17 23:45:59 +03:00
Alex Waygood
03b4bb9cce
Stdlib: add many missing __hash__ and __eq__ methods ( #10464 )
2023-07-17 14:21:02 +02:00
Jisuk Byun
a04822051f
Fix type hints in email module ( #10450 )
2023-07-17 14:14:28 +02:00
Nikita Sobolev
4a643318ea
sqlite3 updates for py312 (#10469 )
2023-07-17 12:44:49 +01:00
Nikita Sobolev
57c435cd7e
Update pydoc for 3.12 ( #10467 )
2023-07-16 11:28:56 +01:00
Alex Waygood
47fc836259
Add stubs for pkg_resources._vendor.packaging ( #10423 )
2023-07-15 13:56:21 -07:00
anniel-stripe
a83e55990c
[stripe] Add type for PaymentLink ( #10461 )
2023-07-15 11:11:35 +01:00
Sebastian Rittau
7ea173c4ad
Fix @patch when new is missing ( #10459 )
2023-07-14 12:53:13 +02:00
Bruno Cabral
1d7f0d087b
tkinter: accept Iterable[int] for grid_columnconfigure, grid_rowconfigure ( #10455 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2023-07-13 23:38:47 +01:00
Bruno Cabral
eba3a4903d
Accept ints for tkinter.ttk.Treeview columns ( #10456 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2023-07-14 01:29:06 +03:00
Nikita Sobolev
3c9522bcfe
Bump pyright version ( #10454 )
2023-07-13 09:08:27 -07:00
Nikita Sobolev
17c0421c29
Adds py3.12 constants to sqlite3 ( #10453 )
2023-07-13 16:49:34 +01:00
Sebastian Rittau
1925730585
[jsonschema] Use Incomplete instead of Any ( #10451 )
...
Replace `Any` with `Incomplete`
2023-07-13 13:34:24 +01:00
Hood Chatham
ad3648dd4e
Fix type of linecache.cache ( #10447 )
...
An entry of linecache.cache is either a lazy entry or a full entry. The full entries
are typed correctly but the lazy entry is supposed to be a one-tuple consisting of a
function that takes zero arguments and returns either a string or None.
2023-07-13 11:15:15 +02:00
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