Commit Graph
6163 Commits
Author SHA1 Message Date
Guido van RossumandGitHub 47cccff9cb asyncio.Task: .cancelling() and .uncancel() now return int, not bool (#7405) 2022-02-28 17:35:42 -08:00
Alex WaygoodandGitHub 4b7d2a76cb Add __all__ for pickle and turtle (#7401) 2022-02-28 14:50:29 -08:00
ShantanuandGitHub b5f32a609a random: add new default args in py311 (#7400) 2022-03-01 00:19:05 +02:00
HugoandGitHub ba1482bba4 Add DEFAULT_CIPHERS to urllib3.util.ssl_ (#7399) 2022-02-28 19:08:16 +01:00
Martin FischerandGitHub 98d9ed44cd docutils: complete nodes.Node & bump version to 0.18.* (#7380) 2022-02-28 17:59:56 +01:00
Rebecca ChenandGitHub 64133df6eb Add stripe.util.convert_to_stripe_object (#7386) 2022-02-28 13:47:53 +01:00
Alex WaygoodandGitHub 1ebedcc2b4 Mark fields as readonly in builtins.pyi and types.pyi (#7392)
Add FunctionType.__builtins__
2022-02-28 13:23:34 +01:00
Alex WaygoodandGitHub bf167d4df4 Add __all__ for asyncio.unix_events & asyncio.taskgroups, and simplify asyncio.__init__ (#7343) 2022-02-28 12:51:32 +01:00
Alex WaygoodandGitHub b8421eb5d4 Delete the contents of distutils.command.__init__ (#7370) 2022-02-27 16:43:11 -08:00
Alex WaygoodandGitHub a0b41959ec stdlib: fix many attributes which are read-only at runtime but read-write in the stub (#7395) 2022-02-27 16:23:09 -08:00
Alex WaygoodandGitHub 46da0b87ea Add collections.ChainMap.__bool__ (#7391) 2022-02-27 16:02:01 -08:00
Alex WaygoodandGitHub 95885c96ed Add subprocess.__all__ (#7390) 2022-02-27 16:01:51 -08:00
Alex WaygoodandGitHub 3000bb8d91 lib2to3: add Leaf.__unicode__ and Node.__unicode__ (#7394) 2022-02-27 14:49:28 -08:00
Alex WaygoodandGitHub 4f0d8c593e Delete EnumMeta.__setattr__ and EnumMeta.__delattr__ (#7388) 2022-02-26 17:55:53 -08:00
Alex WaygoodandGitHub 2d6ab4d3bf Fix several mypy errors when run on the 3.11 stdlib (#7389) 2022-02-26 17:49:36 -08:00
Alex WaygoodandGitHub 95df201a78 Add tokenize.__all__ (#7387) 2022-02-26 16:35:55 -08:00
yejia-stripeandGitHub ee8aa1e012 Improve annotation for stripe DeletableAPIResource delete method (#7230) 2022-02-25 08:04:36 -08:00
Sebastian RittauandGitHub 3afcc1b2b1 Mark selenium stubs as obsolete (#7383) 2022-02-25 15:46:39 +01:00
Alex WaygoodandGitHub d2ddda00cf Fix various __all__-related typos and omissions (#7378) 2022-02-25 15:10:00 +02:00
f4b43daba0 Update importlib.metadata typings for 3.10 (#7331)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2022-02-24 19:15:13 -08:00
Martin FischerandGitHub a342a49d38 docutils: Add missing dunders to nodes.Element (#7377) 2022-02-24 11:46:05 +01:00
Rebecca ChenandGitHub da093c395c Allow multiprocessing.pool.ThreadPool.__exit__ to accept None (#7376) 2022-02-23 19:21:25 -08:00
Alex WaygoodandGitHub 6a743348ca Add __all__ for most modules beginning with 't' (#7373) 2022-02-23 18:25:28 -08:00
Alex WaygoodandGitHub 062fc75d73 Upgrade pytype to 22.2.23 (#7375)
Unblocks #7343
2022-02-23 17:39:27 -08:00
Fares AhmedandGitHub b55fed42ed Add stubs for pynput package (#7177)
Fixes #4328
2022-02-23 23:10:20 +01:00
Alex WaygoodandGitHub 58e505eeb2 Add __all__ for modules beginning with 'u', 'x', 'w' and 'z' (#7374) 2022-02-23 23:04:21 +01:00
Sebastian RittauandGitHub 7b024f5e9a Update dateparser stubs for 1.1 (#7368) 2022-02-23 11:15:24 -08:00
Joseph YoungandGitHub d3941c2463 regex stubs: Add __getitem__ method to Match (#7372) 2022-02-23 19:38:29 +01:00
Sebastian RittauandGitHub ffeac7297f Re-export RedisCluster from redis (#7371) 2022-02-23 16:39:09 +01:00
Alex WaygoodandGitHub 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 CellerierandGitHub 09a1932e68 Address parameter of datagram_received can be of type tuple[int, int] (#7366) 2022-02-23 12:09:26 +01:00
Jelle ZijlstraandGitHub 4781dbf752 smtpd: MailmanProxy was removed in 3.11 (#7365)
python/cpython#26617
2022-02-22 17:06:39 -08:00
Alex WaygoodandGitHub a3bb5af4a0 Add __all__ to most modules beginning with 'q', 'r' and 's' (#7364) 2022-02-22 16:51:54 -08:00
Alex WaygoodandGitHub 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 WaygoodandGitHub 070bbb4fb9 Add multiprocessing.reduction submodule (#7361) 2022-02-22 16:36:26 -08:00
Alex WaygoodandGitHub 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 WaygoodandGitHub 22c3cc4d0b Add csv.__version__ (#7357) 2022-02-22 20:12:43 +02:00
Alex WaygoodandGitHub 6fc4c14181 Add missing objects in codecs, configparser, and multiprocessing.dummy (#7360) 2022-02-22 18:25:27 +01:00
Andrew SvetlovandGitHub 28fd555431 Sync asyncio.isfuture definitions by sharing asyncio.base_futures.isfuture definition (#7353) 2022-02-22 18:24:57 +01:00
Alex WaygoodandGitHub a37d5f4849 Add enum module features new in 3.11 (#7358) 2022-02-22 08:42:03 -08:00
Alex WaygoodandGitHub bdcaea4305 cgi: Add print_exception and print_arguments (#7359) 2022-02-22 08:38:02 -08:00
Jukka LehtosaloandGitHub 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 RittauandGitHub 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 WaygoodandGitHub 64af11c78f Correct several positional-only differences in third-party stubs (#7352) 2022-02-22 06:49:51 -08:00
Alex WaygoodandGitHub 69abe56e18 pyrightconfig.json: correct typo in comment (#7355)
Typeshed has no factions, only fractions :)
2022-02-22 06:44:16 -08:00
Martin FischerandGitHub 51a3cf072c Add comments about mypy limitation regarding TypeVar constraints (#7350) 2022-02-22 12:29:39 +01:00
Alex WaygoodandGitHub d6ce3abd68 Add __all__ to most modules beginning with 'n', 'o' and 'p' (#7345) 2022-02-21 17:57:03 -08:00
ShantanuGitHubhauntsaninja <>
09c945b32b http: make __str__ match runtime def (#7348)
Co-authored-by: hauntsaninja <>
2022-02-21 17:55:29 -08:00
ShantanuGitHubhauntsaninja <>
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
ShantanuGitHubhauntsaninja <>
075b8e02eb Update stubtest for async and dunder pos only checking (#7333)
Co-authored-by: hauntsaninja <>
2022-02-21 15:54:16 -08:00