Alex Waygood
58e505eeb2
Add __all__ for modules beginning with 'u', 'x', 'w' and 'z' ( #7374 )
2022-02-23 23:04:21 +01:00
Sebastian Rittau
7b024f5e9a
Update dateparser stubs for 1.1 ( #7368 )
2022-02-23 11:15:24 -08:00
Joseph Young
d3941c2463
regex stubs: Add __getitem__ method to Match ( #7372 )
2022-02-23 19:38:29 +01:00
Sebastian Rittau
ffeac7297f
Re-export RedisCluster from redis ( #7371 )
2022-02-23 16:39:09 +01:00
Alex Waygood
05dee4dc0e
Improve re.RegexFlag etc ( #7369 )
...
- Add `NO_FLAG`, new in 3.11
- Delete very old comment
- Several members in `RegexFlag` are aliases of other members; the stub should reflect that
2022-02-23 15:06:57 +01:00
Thomas Cellerier
09a1932e68
Address parameter of datagram_received can be of type tuple[int, int] ( #7366 )
2022-02-23 12:09:26 +01:00
Jelle Zijlstra
4781dbf752
smtpd: MailmanProxy was removed in 3.11 ( #7365 )
...
python/cpython#26617
2022-02-22 17:06:39 -08:00
Alex Waygood
a3bb5af4a0
Add __all__ to most modules beginning with 'q', 'r' and 's' ( #7364 )
2022-02-22 16:51:54 -08:00
Alex Waygood
240628c4dd
Add missing objects to plistlib, and improve __all__ in asyncio.tasks, http.server, & multiprocessing.__init__ ( #7363 )
2022-02-22 16:39:34 -08:00
Alex Waygood
070bbb4fb9
Add multiprocessing.reduction submodule ( #7361 )
2022-02-22 16:36:26 -08:00
Alex Waygood
1610949c66
Improve enum stubs ( #7362 )
...
- Improve TypeVar names
- `object` -> `Any` in `Enum.__new__` (there _are_ restrictions on the kinds of objects that can be passed in, they're just not expressable in the stubs.
- Delete pointless `Self | int` unions, since `Self` is a subtype of `int` for these methods.
2022-02-22 20:17:55 +01:00
Alex Waygood
22c3cc4d0b
Add csv.__version__ ( #7357 )
2022-02-22 20:12:43 +02:00
Alex Waygood
6fc4c14181
Add missing objects in codecs, configparser, and multiprocessing.dummy ( #7360 )
2022-02-22 18:25:27 +01:00
Andrew Svetlov
28fd555431
Sync asyncio.isfuture definitions by sharing asyncio.base_futures.isfuture definition ( #7353 )
2022-02-22 18:24:57 +01:00
Alex Waygood
a37d5f4849
Add enum module features new in 3.11 ( #7358 )
2022-02-22 08:42:03 -08:00
Alex Waygood
bdcaea4305
cgi: Add print_exception and print_arguments (#7359 )
2022-02-22 08:38:02 -08:00
Jukka Lehtosalo
12f45c5efb
Replace some literal types in logging with int ( #7354 )
...
See #7258 for an extended discussion. In summary, for mypy these
would be better written as follows, but this would not work with
other type checkers:
```
CRITICAL: Final = 50
```
2022-02-22 16:24:10 +01:00
Sebastian Rittau
7a81bd41e9
Re-introduce the 'stubtest' key for third-party packages ( #7351 )
...
Some distributions can't be tested with stubtest for a variety of
reasons or because of bugs in stubtest. This key:
* let's us keep metadata about a distribution in one place,
* prevents us from modifying the scripts because of issues with a
specific distribution, and
* will trigger tests if only the key is changed.
2022-02-22 15:59:27 +01:00
Alex Waygood
64af11c78f
Correct several positional-only differences in third-party stubs ( #7352 )
2022-02-22 06:49:51 -08:00
Alex Waygood
69abe56e18
pyrightconfig.json: correct typo in comment ( #7355 )
...
Typeshed has no factions, only fractions :)
2022-02-22 06:44:16 -08:00
Martin Fischer
51a3cf072c
Add comments about mypy limitation regarding TypeVar constraints ( #7350 )
2022-02-22 12:29:39 +01:00
Alex Waygood
d6ce3abd68
Add __all__ to most modules beginning with 'n', 'o' and 'p' ( #7345 )
2022-02-21 17:57:03 -08:00
Shantanu
09c945b32b
http: make __str__ match runtime def ( #7348 )
...
Co-authored-by: hauntsaninja <>
2022-02-21 17:55:29 -08:00
Shantanu
c2fb0fb814
Downgrade stubtest a little ( #7346 )
...
Fixes #7344 for now.
As discussed in that issue, I think it might make sense to revert the
change to check positional-only arguments on dunders for now, since it
seems to be mostly busywork and has very little benefit for end users.
However, that'll happen on stubtest master, which typeshed isn't yet
ready for.
Co-authored-by: hauntsaninja <>
2022-02-21 17:05:46 -08:00
Shantanu
075b8e02eb
Update stubtest for async and dunder pos only checking ( #7333 )
...
Co-authored-by: hauntsaninja <>
2022-02-21 15:54:16 -08:00
Alex Waygood
3afc0b1ade
Update inspect stubs for Python 3.11 ( #7342 )
2022-02-21 16:36:01 +01:00
kasium
a1bec51768
Update flake8-simplify ( #7339 )
2022-02-21 12:17:43 +02:00
Adam Johnson
816f13339a
Fix unittest.TextTestResult.printErrorList() ( #7341 )
2022-02-21 12:16:31 +02:00
Adam Johnson
bd365f7093
Fix unittest.TextTestResult showAll name ( #7340 )
2022-02-21 11:33:45 +02:00
Nikita Sobolev
4d169eaa83
Adds bdist_wininst definition ( #7249 )
2022-02-20 22:58:48 -08:00
Alex Waygood
e2524b0e96
Add asyncio.base_futures.__all__ ( #7279 )
2022-02-20 17:59:14 -08:00
Alex Waygood
189e4ea396
Use flake8-pyi 22.2.0 ( #7338 )
2022-02-20 17:46:42 -08:00
Shantanu
65724c254d
select: mark positional-only args ( #7337 )
...
Co-authored-by: hauntsaninja <>
2022-02-20 17:39:24 -08:00
Alex Waygood
072f1c246e
Add Y034 to list of ignored error codes for typing.pyi ( #7336 )
...
Unblocks https://github.com/PyCQA/flake8-pyi/pull/186
2022-02-20 17:13:18 -08:00
Jelle Zijlstra
61361ce059
contextvars, pycurl: make classes final ( #7334 )
2022-02-20 16:55:48 -08:00
Martin Fischer
a287cfd925
Improve docutils stubs ( #7256 )
2022-02-20 16:49:11 -08:00
Shantanu
94127ca2f5
builtins: add __build_class__ ( #7324 )
2022-02-20 16:16:07 -08:00
Martin Fischer
a0901817cf
argparse: Use Literal for action & nargs add_argument parameter types ( #7329 )
2022-02-20 16:12:07 -08:00
Alex Waygood
953f815f6b
Add EnumMeta.__prepare__ ( #7243 )
2022-02-20 15:57:21 -08:00
Alex Waygood
8130e40536
Add asyncio.streams.__all__ ( #7275 )
2022-02-20 15:44:32 -08:00
Shantanu
6c08c2f4bd
graphlib: update for py311 ( #7317 )
2022-02-20 15:23:27 -08:00
Shantanu
584e18491b
xml.dom.minidom: add Node.__bool__ ( #7323 )
...
Co-authored-by: hauntsaninja <>
2022-02-20 15:22:02 -08:00
Alex Waygood
2fe519c3a7
Add __all__ for modules beginning with 'e', 'f' and 'g' ( #7325 )
2022-02-20 15:08:14 -08:00
Alex Waygood
3ead05f277
Add __all__ to modules beginning with 'j', 'k' and 'l' ( #7328 )
2022-02-20 15:06:54 -08:00
Alex Waygood
07de01f29e
Add __all__ to modules beginning with 'm' ( #7330 )
2022-02-20 14:08:07 -08:00
Alex Waygood
3e579b8b29
Improve importlib.metadata ( #7326 )
2022-02-20 14:06:27 -08:00
Alex Waygood
8f2f857ffc
Add __all__ for modules beginning with 'h' and 'i' ( #7327 )
2022-02-20 14:01:45 -08:00
Shantanu
2279c87257
collections: fix some Counter nits ( #7313 )
2022-02-20 12:13:49 +02:00
Shantanu
690864c86f
heapq: re-export, add __about__ ( #7308 )
2022-02-20 12:04:44 +02:00
Shantanu
6b29dca128
cgitb: add __UNDEF__ ( #7322 )
2022-02-20 11:51:59 +02:00