Commit Graph

6753 Commits

Author SHA1 Message Date
Nikita Sobolev
266fed2f83 Consistent naming of files in the test_cases directory (#8520) 2022-08-10 10:33:42 +01:00
Alex Waygood
7eaedd44dd Add missing TypedDict methods and ClassVars (#8512) 2022-08-10 10:29:40 +01:00
Alex Waygood
c68bcc7e69 Temporarily pin stubtest to 3.10.5 (#8511) 2022-08-09 13:55:00 +02:00
pre-commit-ci[bot]
ed06b8bf54 Upgrade flake8 to 5.0.4 (#8507)
updates:
- [github.com/pycqa/flake8: 5.0.2 → 5.0.4](https://github.com/pycqa/flake8/compare/5.0.2...5.0.4)

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-09 09:56:19 +01:00
Nikita Sobolev
4e3e9ba2c6 Remove outdated TODO comment (#8508) 2022-08-09 09:55:45 +02:00
Tareq Al-Ahdal
4f6aa12446 Enhanced type hinting for psycopg2 stubs (#8500) 2022-08-08 23:08:17 +02:00
Nikita Sobolev
4e5d9d1cca Add missing metaclasses in ast and contextlib (#8497) 2022-08-08 16:08:07 +01:00
PIG208
28fde2ee27 Add classmethod to stripe.PaymentIntent.confirm. (#8498)
Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2022-08-08 15:58:29 +02:00
Shantanu
fed2e5e0ad psutil: improve svmem types (#8503) 2022-08-08 14:25:22 +02:00
Tareq Al-Ahdal
d7a5a147a0 psutil: types for virtual_memory (#8501) 2022-08-07 14:19:19 -07:00
Nikita Sobolev
64bc0590a6 Remove un-needed __hash__ methods from stdlib (#8465) 2022-08-06 14:55:27 +01:00
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