Stephen Morton
f314631fcb
remove unused io-related allowlist entries ( #12955 )
...
fallout from https://github.com/python/typeshed/pull/12947
fixes https://github.com/python/typeshed/issues/12954
2024-11-04 17:22:08 -08:00
Avasam
c6b197e282
Allowlist six.create_bound_method.__code__ (Fix daily test failure) ( #12759 )
2024-10-08 19:17:52 -07:00
Sebastian Rittau
ef0a5c2d12
Replace types._Cell with types.CellType ( #11904 )
...
Closes #11901
2024-05-12 06:38:38 -07:00
Sebastian Rittau
f646eb86e2
Introduce SupportsContainsAndGetItem ( #11827 )
2024-04-24 16:19:12 +02:00
Shantanu
88fa182253
Use PEP 570 syntax in third party stubs ( #11554 )
2024-03-10 14:11:43 +01:00
Shantanu
4d8ae17776
Bump mypy to 1.9, add to json.encoder, small fixups ( #11549 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-03-09 14:25:00 -08:00
Avasam
26e8c0002f
Enable nearly all pyupgrade rules (except on test cases) ( #11499 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-02-29 18:33:40 +00:00
Sebastian Rittau
b6eaadcfe5
Update typing_extensions imports in third-party stubs ( #11245 )
2024-01-05 15:40:13 +01:00
Sebastian Rittau
afe18e95a9
Add an upstream_repository field to METADATA.toml ( #10487 )
...
Closes : #10478
2023-07-20 16:45:41 +02:00
Alex Waygood
b69b17c3d8
Add defaults for third-party stubs Q-T ( #9959 )
2023-03-28 13:16:31 +02:00
Károly Szabó
604d39c583
Replace object | None with object ( #9857 )
...
All types, including `None`, are a subtype of `object`, so `None` is redundant in the union `object | None`.
2023-03-08 19:59:47 +00:00
Avasam
078c6a0958
Update Unused parameters in stubs/ ( #9704 )
...
* Update _Unused TypeAlias
* Update `object | None` params
* Replace unused `object` parameters with `Unused` alias
2023-02-21 23:52:52 -08:00
Avasam
ed6748fb32
Stubtest settings: change ignore_missing_stub default to false ( #9779 )
...
If you're reading about this commit from an autogenerated changelog entry, this should have no user-visible impact on how the stubs are interpreted by a type checker; it's just an internal change to how typeshed's tests work.
2023-02-20 22:37:45 +00:00
Nikita Sobolev
a21aa2fe26
Mark six as completed ( #9221 )
2022-11-18 10:32:30 +00:00
Avasam
14a43b8015
Fix usage of byte2int with bytes ( #9152 )
2022-11-12 10:56:04 +00:00
Samuel T
796bdc2eb0
Improve accuracy of six byte index methods ( #9117 )
2022-11-09 19:22:33 -08: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
Alex Waygood
48e76e8a56
Bump mypy to 0.981 ( #8796 )
2022-09-26 17:14:33 -07:00
Nikita Sobolev
f611d18f70
six: Remove unused __future__ import ( #8790 )
2022-09-25 06:50:26 -07:00
Alex Waygood
e160324ba7
six: Fix incorrect type[type[Any]] annotation (#8599 )
...
Mypy will (correctly, I think) start flagging `type[type[Any]]` as an illegal annotation when mypy 0.980 comes out. Let's fix it now, before it comes out.
2022-08-23 11:26:10 -07:00
Alex Waygood
6348a58b8b
Import Match and Pattern from re, not typing ( #8277 )
2022-07-12 15:32:48 +02:00
Alex Waygood
8ef6602e25
Third-party stubs: audit more Callable[<parameters>, Any] annotations ( #8233 )
2022-07-04 10:29:47 +02:00
Alex Waygood
1be5918baa
Use _typeshed.IdentityFunction more consistently ( #8063 )
2022-06-12 16:56:14 -07:00
Jukka Lehtosalo
ce88976c0d
Add back six.moves.http_cookies.Morsel ( #7617 )
2022-04-13 16:52:29 +02:00
Jukka Lehtosalo
f888995239
Add back six.moves.configparser.Error ( #7616 )
2022-04-13 14:01:03 +02:00
Jukka Lehtosalo
75bcb07d06
Add missing definitions to six.moves.http_client ( #7615 )
...
These were removed as a side-effect of #7327 , which added
`__all__` to `http.client`. I checked that all the definitions
are present at runtime via `six.moves.http_client`.
2022-04-12 06:51:02 -07:00
Sebastian Rittau
c3907ab26b
Remove Python 2 support from some third-party distributions ( #7466 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-03-09 20:19:22 +02:00
Sebastian Rittau
7f2cf525e9
Add six.create_bound_method dunders to allowlist ( #7409 )
...
Closes : #7404
2022-03-01 07:16:49 -08:00
Alex Waygood
8af5e0d340
Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible ( #6949 )
2022-01-18 07:14:03 -08:00
Alex Waygood
a40d79a4e6
Use lowercase type everywhere ( #6853 )
2022-01-08 16:09:29 +01:00
Joseph Young
fdc5a568ab
Add six.moves.copyreg six stubs ( #6793 )
2022-01-03 17:30:14 +01:00
Alex Waygood
8d5d2520ac
Use PEP 585 syntax wherever possible ( #6717 )
2021-12-28 11:31:43 +01:00
Sebastian Rittau
51a2cd1289
Enable stubtest for six ( #6699 )
2021-12-27 12:36:17 +02:00
Sebastian Rittau
bb77f39b7c
Add a 'stubtest' flag to METADATA.toml ( #6687 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-12-25 17:02:57 +02:00
Shantanu
c47ed98b3e
dummy_thread/ing: remove in 3.9 ( #6408 )
...
https://bugs.python.org/issue37312
2021-11-27 20:50:14 -08:00
Sebastian Rittau
9f86972350
Add star to all non-0.1 versions ( #6146 )
2021-10-11 13:41:19 -07:00
Johan Walles
e4879abb59
text_type should be a type alias, not a variable ( #5945 )
2021-08-22 12:44:23 +02:00
Sebastian Rittau
6c41e3cead
Improve six stubs ( #5908 )
...
* Update version field in METADATA.toml.
* Import from collections.abc in Python 3 stub.
* Add six.__author__.
* Annotate PY2, PY3, and PY34 as literals.
* Correctly annotate *_type and replace instances where they were used
as type aliases.
* Use new union syntax in Python 2 stub.
* Use built-in generics in Python 2 stub where possible.
* Renamed _LazyDescriptor to _LazyDescr to match implementation.
* Derive _LazyDescr from object in Python 2 stub.
2021-08-11 07:40:09 -07:00
Akuli
ce11072dbe
Big diff: use lower-case list and dict ( #5888 )
2021-08-08 09:26:35 -07:00
Akuli
1154218a0e
switch to new union syntax in third-party stubs ( #5881 )
2021-08-08 15:46:55 +02:00
Eric Traut
e2967a8bee
Eliminated the use of "bare" TypeVars in stdlib stubs ( #5041 )
...
Eliminated the use of "bare" TypeVars (i.e. a TypeVar that appears only once) within generic methods. While not considered an error in PEP 484, these are a common source of bugs in code, and some type checkers (including pytype and pyright) flag them as errors.
Co-authored-by: Eric Traut <erictr@microsoft.com >
2021-02-27 19:43:45 -08:00
Ivan Levkivskyi
2c180dd153
Revert "A temporary change for integration testing. Will be removed soon ( #4996 )" ( #4997 )
...
This reverts commit 8c0cad6e2f .
2021-02-01 21:22:12 +00:00
Ivan Levkivskyi
8c0cad6e2f
A temporary change for integration testing. Will be removed soon ( #4996 )
...
Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com >
2021-02-01 19:50:26 +00:00
Ivan Levkivskyi
16ae4c6120
Re-organize directory structure ( #4971 )
...
See discussion in #2491
Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com >
2021-01-27 12:00:39 +00:00