Commit Graph
100 Commits
Author SHA1 Message Date
Avasam 93b4060cd4 [PyInstaller] TOCs are not often lists of TOCs (#10366) 2023-06-27 16:36:51 +02:00
Avasam 5af30e8620 Bump pyright to 1.1.315 and fix openpyxl tests (#10356) 2023-06-23 16:35:37 -07:00
Avasam 67fb6c0cab Type openpyxl incomplete dunders (#10313) 2023-06-15 17:38:02 +02:00
Avasam 8624edd3a5 openpyxl: type tagname, namespace and __doc__ ClassVar and params (#10308) 2023-06-14 07:24:44 +02:00
Avasam 8e4595a168 Type all openpyxl constants (#10312) 2023-06-13 09:11:56 +02:00
Avasam d622a2755d Update vscode recommended settings (#10314) 2023-06-13 09:09:19 +02:00
Avasam 8c582c4459 Complete openpyxl's nested descriptors (#10298) 2023-06-12 16:46:02 +02:00
Avasam b5c9d8d677 Don't ignore missing stubs in setuptools (#10058) 2023-05-19 07:03:34 +01:00
Avasam 2d5dafadb7 openpyxl: Type MetaSerialisable dunders (#10170)
Typed `Serialisable.__attrs__`, `Serialisable.__nested__`, `Serialisable.__elements__`, and `Serialisable.__namespaced__` ClassVars.
2023-05-15 13:48:15 +02:00
Avasam db0149859c Add partial_stub metadata field (#10157) 2023-05-10 17:04:18 +02:00
Avasam dfee77ef6b [openpyxl] Complete base descriptors (#10001) 2023-05-10 08:37:11 +02:00
Avasam a584b43769 [Pillow] Add all missing items (#10114) 2023-05-10 08:34:26 +02:00
Avasam 1caac913ea Add stubdefaulter to create_baseline_stubs.py (#10127) 2023-05-02 11:31:34 +01:00
Avasam 2f9ba99c21 Restore error output in runtests.py (#10110) 2023-04-29 18:17:26 +01:00
Avasam fb4bf034f3 Add fixers to lib2to3 (#10003) 2023-04-27 21:56:56 -07:00
AvasamandAlex Waygood 6cb8bc0ac4 Mark SQLAlchemy stubs with ignore_missing_stub = false (#9653)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-04-26 17:49:46 -07:00
AvasamandAlex Waygood 4930ebade4 Type PyInstaller.building.api and related modules (#9730)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-04-26 17:49:30 -07:00
Avasam fd188fa67e keyboard : Update stubtest_allowlist and add comments for missing defaults (#9965) 2023-04-17 13:26:01 +02:00
b0ed50e939 Fix all fixable stubtest_allowlist entries in SQLAlchemy (#9596)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-04-14 15:34:02 -07:00
AvasamandAlex Waygood 08e6e4ced9 Add pyright testcases / regression tests to the runtests script (#10002)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-04-14 11:11:21 +01:00
Avasam f66769a6f5 Bump Pillow to 9.5.* (#10046)
Release: https://pypi.org/pypi/Pillow/9.5.0
Homepage: https://python-pillow.org
Changelog: https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst
Diff: https://github.com/python-pillow/Pillow/compare/9.4.0...9.5.0
2023-04-13 23:19:33 -07:00
Avasam d00bc529fa Fix a default in pycurl and update apt_dependencies (#9961)
Fix 1 default and update apt dependencies
2023-03-28 20:02:36 -07:00
Avasam 72456da2a3 Add default values for termcolor (#9963) 2023-03-27 22:56:59 +01:00
Avasam 4090282da3 Add default values to JACK-Client (#9964) 2023-03-27 22:55:32 +01:00
Avasam a31a7bc030 Ran stubdefaulter for hdbcli (#9962) 2023-03-27 14:54:53 -07:00
Avasam 24db0692c6 Add more default values to python-xlib (#9960) 2023-03-27 19:47:55 +01:00
Avasam ccbe46173e Ran stubdefaulter for stubs/openpyxl (#9946) 2023-03-26 21:28:07 +01:00
Avasam e5bab38a28 Bump pywin32 to 306.* (#9945)
Release: https://pypi.org/pypi/pywin32/306
Homepage: https://github.com/mhammond/pywin32
2023-03-26 18:58:35 +01:00
AvasamandAlex Waygood 2e59b81ffd Use of twisted in pika (#9494)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-24 22:51:59 -06:00
AvasamandAlex Waygood d8e3f928b0 Add defaults for params and constants in python-xlib (#9642)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-22 20:39:04 +00:00
Avasam a5fc97e6da Fix misnamed parameter in stubtest_third_party (#9716) 2023-03-09 07:33:45 +00:00
Avasam 14b06ae672 pytype_test.py: Fix typechecking errors following #9747 (#9849) 2023-03-06 18:23:07 +00:00
AvasamandAlex Waygood 635493a8f6 Update pkg_resources-stubs for use in pytype_test (#9747)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-05 16:24:57 -08:00
Avasam 21c9ac5df6 Enable running stubtest on more of types-pika (#9826)
Make aliases for non-imported dependency private
2023-02-28 00:41:31 +00:00
Avasam fee5f1b765 Remove most of setuptools._distutils (#9795) 2023-02-26 10:49:24 +00:00
Avasam 52ec44fa58 Improve many __(a)exit__ annotations (#9696) 2023-02-25 21:50:30 +00:00
75f47d0cb1 Typecheck typeshed's code with pyright (#9793)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-02-22 18:53:07 +00:00
Avasam 078c6a0958 Update Unused parameters in stubs/ (#9704)
* Update _Unused TypeAlias

* Update `object | None` params

* Replace unused `object` parameters with `Unused` alias
2023-02-21 23:52:52 -08:00
Avasam 5ac80781ec Integrate requirements-stubtest.txt into METADATA.toml (#9778) 2023-02-21 11:19:50 +01:00
Avasam a6c6bc1b8e Fix stdlib/disutils testing (#9734) 2023-02-21 08:06:20 +00:00
Avasam 040103a74e Add missing symbols to tabulate (#9781) 2023-02-20 23:57:10 +00:00
Avasam 41d7ddb5fe Bump pytype to 2023.2.17 (#9782) 2023-02-20 22:41:25 +00:00
Avasam ed6748fb32 Stubtest settings: change ignore_missing_stub default to false (#9779)
If you're reading about this commit from an autogenerated changelog entry, this should have no user-visible impact on how the stubs are interpreted by a type checker; it's just an internal change to how typeshed's tests work.
2023-02-20 22:37:45 +00:00
AvasamandAlex Waygood 74112dc189 Add a run_stubtest flag to scripts/runtests.py (#9717)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-02-19 22:10:32 +00:00
Avasam 3fc2f27990 Add missing types in xml.dom.minidom (#9731) 2023-02-19 21:49:00 +00:00
Avasam d92332d120 Type Loader parameter in PyYAML/yaml (#9752) 2023-02-19 19:22:14 +00:00
Avasam 50acb57cda Ignore flake8 extensions stubbed by typeshed (#9715) 2023-02-19 12:42:03 +00:00
Avasam 1db405b15c stubsabot: minor refactoring (#9754) 2023-02-18 14:25:04 -08:00
Avasam 140bba3425 Add comments when subclassing Any (#9732) 2023-02-14 14:11:56 +01:00
Avasam 965b3108fe Further improve and simplify pyright configuration (#9714) 2023-02-12 22:42:23 +01:00
Avasam a768744d51 Type and mark as final module-level dunders not meant to be overwritten in stdlib/ (#9709) 2023-02-12 16:15:20 +00:00
Avasam 95789d20b2 Bump pyinstaller to 5.8.* (#9721)
Release: https://pypi.org/pypi/pyinstaller/5.8.0
Homepage: https://www.pyinstaller.org/
Diff: https://github.com/pyinstaller/pyinstaller/compare/v5.7.0...v5.8.0
2023-02-11 18:00:16 -08:00
Avasam 2930f8c6f0 Set HOMEBREW_NO_INSTALL_CLEANUP to speedup brew installs (#9713) 2023-02-11 11:20:20 -08:00
Avasam 10086c06a1 Fix Any subclassing in fpdf2 (#9536) 2023-02-09 09:39:40 +01:00
Avasam 372073d35b Use _typeshed.FileDescriptorOrPath in stubs (#9695) 2023-02-09 08:30:19 +01:00
Avasam 29d9aa9b28 Complete stubtest and fix Any subclassing in tqdm (#9525) 2023-02-07 00:15:44 +00:00
Avasam f1aede7162 Manual changes of Any union to Incomplete in stubs folder (#9566)
- ClassVar[Any | None]
- Missed previous changes due to alias
- Manual review of leftover Any unions (`| Any` and `Any |`)
2023-02-02 06:48:41 -08:00
Avasam 0e7365a7ef Add defaults for params and constants in pyscreeze (#9641) 2023-01-31 17:56:29 -08:00
Avasam 6c4059f188 Add defaults for params and constants in PyAutoGUI (#9639) 2023-01-31 17:26:03 -08:00
Avasam b151e2396a Add defaults for params and constants in pyinstaller (#9640) 2023-01-31 17:24:39 -08:00
Avasam 2ffd867f25 Increase mypy_primer comment length (#9598) 2023-01-29 11:43:38 -08:00
Avasam 6ac24ed923 Replace Any with Incomplete in many places (#9565) 2023-01-18 19:12:46 +00:00
AvasamandAlex Waygood 6cb934291f Complete jack-client stub (#9530)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-17 20:31:49 -08:00
Avasam a991234832 types-Pillow: Allow stubtest to validate PIL.FpxImagePlugin and PIL.MicImagePlugin (#9531) 2023-01-17 16:37:17 +00:00
Avasam 5b0488928d Complete and validate redis.ocsp (use requests, cryptography and pyopenssl) (#9528) 2023-01-17 15:47:26 +00:00
Avasam c70d303985 Audit stdlib object annotations (#9519) 2023-01-17 15:40:00 +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
Avasam aad1a14890 Use the FileDescriptorOrPath alias consistently in the stdlib (#9513) 2023-01-12 18:14:48 +00:00
Avasam 63c7fb0914 Use environment marker to restrict flake8 install (#9510) 2023-01-12 09:57:18 +00:00
AvasamandAlex Waygood 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
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
Avasam 3c24501bb7 openpyxl: Use "Incomplete" instead of "Any" (#9488) 2023-01-10 17:54:06 +00:00
Avasam 41de5317b5 Add FileDescriptorOrPath and Unused type aliases (#9475) 2023-01-08 10:05:51 +00:00
Avasam f115a3c58d Offer sensible default VSCode settings (#9436) 2023-01-08 09:50:20 +00:00
Avasam 64e02a05c2 Use pyasn1 in python-jose (#9469) 2023-01-07 15:32:28 +00:00
Avasam e584337a72 Update actively supported type checker list in readme (#9472)
- Added pyright mention in readme
- Add links to help navigate away readers looking for type-checkers
- Add missing code-block
2023-01-06 13:45:51 -08:00
AvasamandAlex Waygood b5048a00e6 Add stubs for pyasn1 (#9437)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-06 18:25:48 +00:00
Avasam 6a6a677ae3 Improve various jmespath types
Merge `jmespath` from microsoft/python-type-stubs
2023-01-05 11:37:08 +00:00
Avasam 3b94e71280 Add types-html5lib as a dependency of types-beautifulsoup4 (#9462)
Remove the need for subclassing `Any`
2023-01-05 10:40:17 +00:00
Avasam 9041a925cf Add types-docutils as a dependency of types-setuptools (#9460)
Remove the need for subclassing `Any`
2023-01-05 10:37:44 +00:00
Avasam 7fdbb7228c Bump Pillow to 9.4 (#9453)
Closes #9448
2023-01-04 23:38:41 +01:00
AvasamandAlex Waygood 70025c3723 Support third-party stub external dependencies in pytype (#9449)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-04 19:32:23 +00:00
AvasamandAlex Waygood 3e24c65c3b Rework how pyright is run in CI to allow for non-types dependencies(#9434)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-03 22:43:56 +00:00
Avasam 7c15e6998f Autoformat YAML files (#9450) 2023-01-03 08:55:06 +01:00
Avasam 0edcfa13ad Add syntax highlight to all shell code blocks (#9445) 2023-01-02 23:55:25 +00:00
Avasam c45999d905 Re-enable NQA102 (#9426)
re-enable NQA102
2023-01-02 23:49:02 +00:00
Avasam 4a7e14e5ad Deduplicate stubtest command in actions (#9444) 2023-01-02 22:19:47 +00:00
Avasam c41fbc1303 Add typing-extensions to requirements-tests.txt (#9438) 2023-01-01 11:25:51 +00:00
Avasam 46f0d918ef A more accurate termcolor.colored fallback (#9435) 2022-12-31 22:52:26 +00:00
Avasam 23ac9bff19 Check for unused pyright: ignore and differentiate from mypy ignores (#9397) 2022-12-28 10:44:29 +00:00
Avasam 07f587dc70 Bump python-xlib to 0.33 (#9420) 2022-12-27 20:07:12 -08:00
Avasam 3c58efd9a2 mypy_primer: Resolve node.js 12 actions deprecation warning (#9421) 2022-12-28 02:23:44 +00:00