Commit Graph

7456 Commits

Author SHA1 Message Date
Avasam
c70d303985 Audit stdlib object annotations (#9519) 2023-01-17 15:40:00 +00:00
Alex Waygood
3d6b8dccfe mypy_test.py: Try using a process pool instead of a thread pool (#9556) 2023-01-17 14:17:45 +00:00
Sebastian Rittau
7b848b4ede Update fpdf2 stubs to 2.6.1 (#9546) 2023-01-17 13:25:41 +01:00
Alex Waygood
2b9f200e7e Reenable flake8-pyi's Y011 and Y015 (#9551) 2023-01-16 22:52:40 +00:00
Alex Waygood
597e1a0078 Bump various test dependencies (#9549) 2023-01-16 11:04:45 -08:00
Kalle Møller
6b23df3db6 Update _FilterType to retuning bool (#9514) 2023-01-16 16:12:40 +01:00
Alex Waygood
c8c5953aa0 Xlib: Import Pattern from re, not typing (#9544)
Refs https://github.com/PyCQA/flake8-pyi/pull/324
2023-01-16 10:09:06 +00:00
Mehdi Drissi
ebde125d70 Update tensorflow to 2.11 (#9543)
Co-authored-by: Mehdi Drissi <mdrissi@snapchat.com>
2023-01-15 10:28:29 +00:00
github-actions[bot]
eee0ad644d [stubsabot] Bump pytz to 2022.7.1 (#9540)
Release: https://pypi.org/pypi/pytz/2022.7.1
Homepage: http://pythonhosted.org/pytz
2023-01-15 00:51:35 +00:00
github-actions[bot]
7a12cbd8f0 [stubsabot] Bump flake8-bugbear to 23.1.14 (#9541)
Release: https://pypi.org/pypi/flake8-bugbear/23.1.14
Homepage: https://github.com/PyCQA/flake8-bugbear
Changelog: https://github.com/PyCQA/flake8-bugbear#change-log
Diff: https://github.com/PyCQA/flake8-bugbear/compare/22.12.6...23.1.14
2023-01-15 00:50:26 +00:00
Mehdi Drissi
ea0ae2155e Initial tensorflow stubs (#8974)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-14 20:59:29 +00:00
Alex Waygood
0a291da2f0 Pin fpdf2 stubs to 2.6.0 (#9535)
They will need some updates to become compatible with `fpdf2` 2.6.1.

Closes #9524
2023-01-14 18:39:04 +00:00
Avasam
0e36622c72 Resolve stubtest allowlist entries for ldap3 (#9532) 2023-01-14 18:11:17 +00:00
Avasam
85792bca71 Fix stubtest for sqlalchemy.testing.plugin.pytestplugin (#9533) 2023-01-14 13:38:20 +00:00
Avasam
1a9aa3f3fe Update various comments now non-types dependencies are allowed (#9527) 2023-01-14 13:20:04 +00:00
Avasam
cd56735bf0 Allow influxdb-client to be completely tested by stubtest (#9529) 2023-01-14 11:03:21 +00:00
Avasam
1946907451 Allowlist-only fixes for stubtest on Windows (#9522) 2023-01-13 12:45:38 +00:00
Avasam
b216053432 Fix setuptools stubtest on windows (#9521) 2023-01-13 08:16:39 +00:00
Avasam
f84dca699d Fix passlib stubtest on windows (#9523) 2023-01-13 08:14:37 +00:00
Avasam
102a8fa38c Fix some Any subclassing in tqdm (#9505) 2023-01-13 08:10:21 +00:00
Alex Waygood
9a76e5a669 Flask-Migrate: Add Flask as a dependency (#9517) 2023-01-13 00:24:13 +00:00
Alex Waygood
8736b7a565 Flask-Cors: Add Flask as a dependency (#9516) 2023-01-13 00:13:58 +00:00
James Hilton-Balfe
62170653ce Add itertools.batched (#9515) 2023-01-12 22:07:26 +00:00
Alex Waygood
00d663e109 third_party_stubtest: use MYPYPATH for internal dependencies (#9512) 2023-01-12 13:13:42 -08:00
Jelle Zijlstra
b43e1db47b ssl, sysconfig: fix issues with defaults (#9507)
- ssl._create_unverified_context allows None since 3.10:
  2875c603b2 (diff-f6439be9c66350dde4c35dbeea0352c96cc970ba12b0478f6ae36f10725bd8c5)
- sysconfig.is_python_build ignores its argument since 3.11:
  067597522a
  (was backported into 3.11)
2023-01-12 10:19:41 -08:00
Avasam
aad1a14890 Use the FileDescriptorOrPath alias consistently in the stdlib (#9513) 2023-01-12 18:14:48 +00:00
Jelle Zijlstra
f64807a468 socketserver: improve bytes handling (#9096)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-12 16:46:20 +00:00
Avasam
63c7fb0914 Use environment marker to restrict flake8 install (#9510) 2023-01-12 09:57:18 +00:00
Alex Waygood
0b903441e8 Allow stubs to depend on numpy (#9499) 2023-01-12 09:01:23 +00:00
Jelle Zijlstra
b9eab637cb subprocess: Improve bytes-related types (#9100) 2023-01-11 20:10:26 -08:00
Jelle Zijlstra
6a366c99a9 venv: add logger (#9508)
Not particularly useful but unreleased stubtest will require this:
https://github.com/python/typeshed/actions/runs/3898630022/jobs/6657546205
2023-01-11 19:33:16 -08:00
Jelle Zijlstra
1ce1c1ad17 subprocess: universal_newlines may be None (#9509)
All the way back to 3.7:
https://github.com/python/cpython/blob/3.7/Lib/subprocess.py#L684

It's treated like False
2023-01-11 19:15:40 -08:00
Jelle Zijlstra
d2829ecdf7 urllib.parse.urlencode: encoding and errors can be None (#9506)
The runtime defaults are None. Found in #9501.
2023-01-11 18:55:38 -08:00
github-actions[bot]
150dc35d43 [stubsabot] Bump braintree to 4.18.* (#9502)
Release: https://pypi.org/pypi/braintree/4.18.0
Homepage: https://developer.paypal.com/braintree/docs/reference/overview
2023-01-12 00:27:21 +00:00
github-actions[bot]
af1a505963 [stubsabot] Bump setuptools to 65.7.* (#9504)
Release: https://pypi.org/pypi/setuptools/65.7.0
Homepage: https://github.com/pypa/setuptools
Changelog: https://setuptools.pypa.io/en/stable/history.html
Diff: https://github.com/pypa/setuptools/compare/v65.6.3...v65.7.0
2023-01-12 00:24:16 +00:00
github-actions[bot]
40f4a726cf [stubsabot] Bump toposort to 1.9 (#9503)
Release: https://pypi.org/pypi/toposort/1.9
2023-01-12 00:20:58 +00:00
Avasam
bc08ecfd10 Overhaul ldap3 stubs (#9470)
Add a dependency on `types-pyasn1`, removing the need to subclass `Any`. Fill in many missing types. Use `Incomplete` rather than `Any` where applicable.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-11 23:14:41 +00:00
Alex Waygood
ab1921a737 Teach isort that imports from utils are first-party imports (#9500) 2023-01-11 17:25:32 +01:00
Sebastian Rittau
b8f337a452 SQLAlchemy: Annotate text() (#9498) 2023-01-11 15:01:11 +00:00
Mehdi Drissi
b76e61734f Allow default values in stubs. (#9490)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-11 14:31:45 +00:00
Avasam
5f08529a4d SQLAlchemy: Remove some implementation details (#9492)
Stubs for the mypy plugin, which aren't useful if you're using typeshed's SQLAlchemy stubs, have been removed.
2023-01-11 11:21:18 +00:00
Avasam
5eb6a692f5 types-pyinstaller: no longer subclass "Any" (#9495) 2023-01-11 09:32:54 +00:00
github-actions[bot]
28bf5c9ddd Bump toposort to 1.8 (#9489) 2023-01-11 00:18:57 +00:00
kasium
5e1632be49 Add stubs for python-datemath (#5765)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-11 00:04:07 +00:00
Alex Waygood
e2d67bf703 Delete stubs for cryptography (#9459)
Typeshed's stubs for `paramiko` and `pyOpenSSL` now depend on the `cryptography` package, which now provides inline types at runtime
2023-01-10 22:16:11 +00:00
Rebecca Chen
622a96b1de pytype_test: Mark typeshed-external dependencies as missing. (#9486)
Co-authored-by: Avasam <samuel.06@hotmail.com>
2023-01-10 22:00:43 +00:00
Avasam
3c24501bb7 openpyxl: Use "Incomplete" instead of "Any" (#9488) 2023-01-10 17:54:06 +00:00
pre-commit-ci[bot]
d2d706f9d8 [pre-commit.ci] pre-commit autoupdate (#9485) 2023-01-10 03:25:01 +01:00
Shantanu
fa204f6bd4 Update compileall stripdir type (#9404)
See https://github.com/python/cpython/pull/19883
2023-01-08 22:26:33 -08:00
Alex Waygood
9aa3d99ac2 mypy_test.py: Add more comments (#9477)
Some fairly subtle logic was added in #9408, and I'm immediately regretting not having documented it slightly better. This PR adds some more comments to make maintaining this code easier in the future.
2023-01-08 12:26:11 -08:00