Commit Graph
7 Commits
Author SHA1 Message Date
MapleCCC dece0b1fff assertRaises / assertRaisesRegex / assertWarns / assertWarnsRegex: msg argument is keyword-only (#8631) 2022-08-27 15:55:14 +01:00
MapleCCC b04512eaaa Fix return type of st2tuple() and STType.totuple() (#6091) 2021-09-30 09:35:38 +02:00
MapleCCC 089dd43eb7 Update stdblib/shelve.pyi (#5816)
Several things done:

1. Replace all occurrences of `Any` by respective concrete types.
2. Make `Shelf` and its subclassses generic. (Fixes #5815)
3. `shelve.open` should return a general `Shelf` object, not `DbfilenameShelf`. The documentation does not expose such implementation detail.
4. The argument `dict` is annotated with an abstract type `MutableMapping` rather than concrete type `Dict`.
5. Remove unnecessary methods. Some of them are inherited from `MutableMapping`, so no need to repeat them here.
6. Use builtin-in generics instead of importing from `typing`.
2021-07-30 06:50:27 -07:00
MapleCCC 7ce0b9d670 Update urllib3.util.retry.Retry.__init__() to match the latest version released on PyPI (#5817) 2021-07-29 20:35:24 -07:00
MapleCCC 65b3a4b09d Add type annotation for multiprocessing.SimpleQueue.close() method (#5814) 2021-07-28 09:43:27 -07:00
MapleCCC 5804543c1c Add __all__ to __future__.pyi (#5570)
Closes #5569
2021-06-03 10:50:38 -07:00
MapleCCC cfe832b907 Fix type annotation of ast.NodeTransformer.generic_visit(). It always returns an ast.ASt object. (#4483) 2020-08-26 10:24:17 -07:00