Commit Graph

6692 Commits

Author SHA1 Message Date
Nikita Sobolev
ac86defef7 Simplify multiprocessing.context.{SpawnProcess,SpawnContext} (#8499) 2022-08-06 12:03:43 +01:00
Alex Waygood
892796a794 Remove, move or # noqa more TypeAlias declarations (#8450) 2022-08-05 13:03:19 +01:00
Kevin Kirsche
3e88363b34 requests.adapters: use re-exports rather than assignments (#8485) 2022-08-05 12:46:07 +01:00
Kevin Kirsche
68f20a4a23 Add requests.help submodule (#8486) 2022-08-05 12:32:40 +01:00
Kevin Kirsche
46a3806312 Add requests.__version__; improve requests.__init__ (#8484)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-05 12:28:35 +01:00
github-actions[bot]
eb07618098 [stubsabot] Bump dj-database-url to 1.0.* (#8488)
* [stubsabot] Bump dj-database-url to 1.0.*

* Add DJANGO_VERSION

Co-authored-by: stubsabot <>
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2022-08-05 12:12:37 +01:00
github-actions[bot]
67ff035dbb [stubsabot] Bump jsonschema to 4.9.* (#8491)
* [stubsabot] Bump jsonschema to 4.9.*

* Remove jsonschema._reflect

Co-authored-by: stubsabot <>
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2022-08-05 11:26:24 +01:00
Nikita Sobolev
2f15b0d4db _sendfile_compatible is a class variable (#8496) 2022-08-05 10:52:08 +02:00
Shantanu
02a72d0045 Bump pyflakes to 2.5.* (#8495) 2022-08-05 08:55:36 +02:00
github-actions[bot]
959840a12d [stubsabot] Bump flake8-typing-imports to 1.13.* (#8489)
Co-authored-by: stubsabot <>
2022-08-04 17:53:58 -07:00
github-actions[bot]
c867a8ea70 [stubsabot] Bump flake8-2020 to 1.7.* (#8492)
Co-authored-by: stubsabot <>
2022-08-04 17:53:47 -07:00
github-actions[bot]
fe99d2322c [stubsabot] Bump setuptools to 63.4.* (#8493)
Co-authored-by: stubsabot <>
2022-08-04 17:53:42 -07:00
Nikita Sobolev
a03e8b4949 Revert __eq__ removal (#8487)
Refs #8483
2022-08-04 23:51:42 +02:00
Nikita Sobolev
a376da87bd Remove duplicate definitions (#8483) 2022-08-04 18:55:18 +02:00
Kevin Kirsche
103c2f39d2 Add urllib3.contrib.socks; improve urllib3.connectionpool (#8457)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-04 11:36:40 +01:00
Nikita Sobolev
799fd2c8d8 Improve multiprocessing.context module (#8466)
* Use `ClassVar` where applicable
* Fix `_Popen()` return types
* Remove non-existing field `BaseContext.Process`

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-04 12:30:23 +02:00
Nikita Sobolev
bcd770bad3 Always return True from xml.dom.minidom.Node.__bool__ (#8480) 2022-08-04 12:23:34 +02:00
Nikita Sobolev
0480550fc3 Adds missing __dir__ definitions (#8479) 2022-08-04 12:21:43 +02:00
Kevin Kirsche
7953848101 Various pyvmomi improvements (#8469)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-03 23:08:08 +01:00
Rebecca Chen
ac2fe42a14 Bump pytype version. (#8478)
Picks up a fix for the pytype test failure in
https://github.com/python/typeshed/pull/8469.
2022-08-03 22:58:54 +01:00
Nikita Sobolev
b19d447721 Remove Enum.__hash__, improve Enum.__reduce_ex__ (#8477) 2022-08-03 18:19:49 +01:00
Kevin Kirsche
bd7a02fad4 refactor: prefer f-strings to other format/concatentation styles (#8474) 2022-08-03 14:04:27 +02:00
Nikita Sobolev
38c4a1ece2 Remove redundant __str__ methods (#8475) 2022-08-03 13:45:16 +02:00
Kevin Kirsche
65dadac46d Add some missing stubs in datetimerange (#8470) 2022-08-02 23:08:18 +01:00
Akuli
57179d4080 tkinter: get rid of unnecessary Incomplete (#8471) 2022-08-02 15:03:24 -07:00
Anton Grübel
7148ee8612 Improve urllib3.util.url annotations (#8460) 2022-08-02 22:57:39 +01:00
Scott Lerman
93ebd58055 Fix complex constructor (#8473) 2022-08-03 00:41:18 +03:00
pre-commit-ci[bot]
fc0a5a26b5 [pre-commit.ci] pre-commit autoupdate (#8461)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/hadialqattan/pycln: v2.0.4 → v2.1.1](https://github.com/hadialqattan/pycln/compare/v2.0.4...v2.1.1)
- [github.com/pycqa/flake8: 4.0.1 → 5.0.2](https://github.com/pycqa/flake8/compare/4.0.1...5.0.2)

* Update requirements-tests.txt

* Update flake8-pyi and flake8-bugbear as well

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-02 20:43:32 +01:00
Akuli
5e5f3b4ecc Use typeshed.Incomplete and object instead of Any in tkinter stubs (#8458)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-02 22:10:25 +03:00
Alex Waygood
1dc1c91429 io.IOBase: correct metaclass (#8468)
`io.IOBase` has `ABCMeta` as the metaclass at runtime: 75a6441718/Lib/io.py (L71)

But not currently in the stub. This is causing an unexpected stubtest failure for a `urllib3` PR here: https://github.com/python/typeshed/runs/7633083101?check_suite_focus=true
2022-08-02 09:20:07 -07:00
Alex Waygood
df4618ef2d Upgrade pycln and flake8-pyi (#8464) 2022-08-02 08:43:02 +01:00
Nikita Sobolev
1bd1625c36 importlib: SimplePath: __div__ -> __truediv__ on 3.10 (#8451)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-02 07:15:46 +01:00
Shantanu
402489b40a requests: fix stubtest (#8463) 2022-08-01 18:39:06 -07:00
Kevin Kirsche
3d9e907873 Improve urllib3.fields annotations (#8456)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-01 15:39:21 +01:00
Yasir Ekinci
76643099a9 redis.backoff: fix cap and base type (float) (#8454) 2022-08-01 09:07:28 +02:00
Alex Waygood
59a9621554 test_cases README: fix typos (#8453)
Both introduced in #8445
2022-07-31 23:11:13 +01:00
Alex Waygood
4414246a15 Clean up a few Python 2 remnants (#8452) 2022-07-31 19:19:18 +01:00
Kevin Kirsche
ca633bbde8 Add type hints to flask_sqlalchemy.model (#8389) 2022-07-31 15:36:46 +01:00
Alex Waygood
87fc724cef ctypes: pointer is a function, not a class (#8446) 2022-07-31 15:29:13 +02:00
Alex Waygood
ea7bbbdad7 Move Match and Pattern to re.pyi; move ContextManager protocols to contextlib.pyi (#8447) 2022-07-31 15:27:47 +02:00
Kevin Kirsche
36a5bb08ad Annotate flask_sqlalchemy.__init__.Pagination (#8390)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-31 11:52:26 +01:00
Sebastian Kreft
66eef16d66 Add annotations to urrlib3.util.url (#8448) 2022-07-30 20:04:45 +01:00
Alex Waygood
935ac9ca9e test_cases: Improve README (#8445) 2022-07-30 18:40:56 +01:00
Alex Waygood
fdeb216547 Remove or move several TypeAlias declarations (#8444) 2022-07-30 15:28:52 +01:00
Nikita Sobolev
275fc28733 Improve redis.cluster annotations (#8379)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-30 12:50:39 +01:00
Alan Isaac
a13e2339c4 traceback: Use _typeshed.SupportsWrite instead of typing.IO (#8442) 2022-07-30 12:24:57 +01:00
Kevin Kirsche
f550c24886 Add multiprocessing.popen_spawn_win32 submodule (#8428) 2022-07-29 16:02:15 +01:00
Kevin Kirsche
17e3cf99a4 Add multiprocessing.popen_spawn_posix submodule (#8427) 2022-07-29 15:52:49 +01:00
Alex Waygood
553700e355 Move some protocol definitions closer to their usage sites (#8436) 2022-07-29 06:26:27 -07:00
Nikita Sobolev
aba4bbd13b Add pyopenssl.rand module (#8435) 2022-07-29 09:24:15 +01:00