Commit Graph

54 Commits

Author SHA1 Message Date
Alex Waygood
c49c84f319 A new shade of Black (#11362) 2024-02-04 16:38:55 -08:00
Alex Waygood
ccc81f224d Bump various test dependencies (#11249) 2024-01-05 14:09:02 -08:00
Sebastian Rittau
b6eaadcfe5 Update typing_extensions imports in third-party stubs (#11245) 2024-01-05 15:40:13 +01:00
Sebastian Rittau
23604858a6 Remove Python 3.7 branches (#11238) 2024-01-05 11:39:39 +01:00
Avasam
23b0291176 openpyxl: Type styleable descriptors (#11103) 2023-12-05 10:41:41 +01:00
Avasam
5521da8e92 Openpyxl: Various improvements (#11092) 2023-12-04 21:54:45 +01:00
Avasam
5f12eebda4 openpyxl: type to_tree methods (#10967) 2023-12-01 13:13:16 +01:00
Avasam
4687faab8e Use ConvertibleToInt/ConvertibleToFloat in many third-party stubs (#11022)
Note: this may make the latest version of certain stubs packages incompatible with older versions of mypy and pyright.
2023-11-29 11:23:00 +00:00
Alex Waygood
01432805d9 Fix typos in docs and comments (#11064) 2023-11-23 14:55:58 +00:00
Alex Waygood
1d2fe59e88 Third-party stubs: remove unused type: ignores (#11063) 2023-11-23 13:35:45 +00:00
Alex Waygood
516f665505 Bump flake8-pyi to 23.11.0 (#10997) 2023-11-08 16:01:24 +00:00
Avasam
3a56e0034c xml.etree: Fix tag param in __init__ (#10968) 2023-11-03 14:50:49 +01:00
Avasam
6a2528e6dc openpyxl TypeGuards and comparison dunders (#10962) 2023-11-02 18:17:47 +01:00
Avasam
105bb0a060 openpyxl: Type usages of PIL and zipfile (#10706) 2023-11-02 15:28:41 +01:00
Avasam
5e13bc08e1 openpyxl: Various minor improvements / previous PR fixes (#10896) 2023-10-16 12:05:00 -07:00
Avasam
9c0f4353ef openpyxl: type __iter__ dunders (#10883) 2023-10-16 17:31:39 +01:00
Avasam
df05ff2f52 Typed openpyxl colors descriptors (#10882) 2023-10-15 17:49:57 +02:00
Avasam
c30c85dfcb Type all @property in openpyxl (#10787) 2023-10-04 11:05:30 +02:00
Avasam
31916d1e0c Remove redundant NoReturn union in openpyxl (#10819) 2023-10-02 11:07:21 +02:00
Avasam
381fc572a8 Complete openpyxl metaclasses (#10736) 2023-09-22 19:45:08 -07:00
Avasam
32535ee895 openpyxl: Typed from_tree methods (#10602) 2023-09-11 16:43:16 +02:00
Martina Oefelein
011b5b9c2c openpyxl: CellRange: title should not be required (#10688)
Fixes #10682
2023-09-10 16:00:49 +02:00
Avasam
54193d5ddd openpyxl: Class attributes set explicitly as another class' (#10549) 2023-08-15 13:42:58 +02:00
Avasam
6c7be1e066 openpyxl: Make common alias for visibility literal string union (#10562) 2023-08-15 13:33:55 +02:00
Avasam
af36a157e5 Complete openpyxl title type annotations (#10563) 2023-08-15 13:17:27 +02:00
Avasam
320a9c37c7 Make openpyxl stubtest-complete (#10570) 2023-08-14 18:24:40 +02:00
Akuli
754473a30d Add a few more upstream_repository URLs (#10489) 2023-07-20 17:23:19 +02:00
Avasam
61914253a0 Type openpyxl functions module and its usages (#10322) 2023-07-19 13:29:31 +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
8c582c4459 Complete openpyxl's nested descriptors (#10298) 2023-06-12 16:46:02 +02: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
Alex Waygood
277532219f Remove unnecessary F821 noqas (#10123) 2023-05-01 07:50:00 -07:00
wikiped
03ca80bb61 [openpyxl] Annotate _WorkbookChild.title property (#10043) 2023-04-13 12:18:55 +02:00
Avasam
ccbe46173e Ran stubdefaulter for stubs/openpyxl (#9946) 2023-03-26 21:28:07 +01:00
Alex Waygood
1d6a880a3d openpyxl: add baseline stubs for new modules (#9921) 2023-03-24 12:39:10 +01:00
Sebastian Rittau
c7d805b142 [openpyxl] Annotate Worksheet and other items (#9892)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-23 23:45:00 +00:00
Sebastian Rittau
8877c12cdf [openpyxl] Update to 3.1, add more annotations (#9875)
Closes: #9644
2023-03-15 00:50:16 -07:00
Mynhardt Burger
3f6f54e9d9 Improve openpyxl annotations (#9764)
Co-authored-by: ArnabRollin <iamarnab.phukan@gmail.com>
Co-authored-by: ArnabRollin <106329283+ArnabRollin@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-02-21 15:36:57 +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
Alex Waygood
a4e3cfefac Improve pre-commit config (#9563)
- Add a few more hooks. These are all very fast, and I've found them useful in other projects:
  - Autofixes:
    - `trailing-whitespace`: fixes trailing whitespace
    - `requirements-txt-fixer`: alphabetises items in `requirements.txt` files
    - `end-of-file-fixer`: makes sure every file ends with a single newline character
    - `mixed-line-ending`: Makes sure Windows users don't accidentally introduce CRLF line endings into a file that uses LF line endings
  - None-autofixes:
    - `check-yaml`: loads YAML files to validate syntax
    - `check-toml`: loads TOML files to validate syntax
    - `check-merge-conflict`: detects merge-conflict strings in files and blocks them from accidentally being committed
    - `check-case-conflict`: checks for files with names that would conflict on a case-insensitive filesystem like MacOS HFS+ or Windows FAT; blocks them from being committed.
  - Change the bot schedule to quarterly, to reduce noisy PRs
  - Change the `black` language target-version to Python 3.10, synching the setting here with the changes that were made to our `pyproject.toml` file in #7538
2023-01-18 06:29:18 -08:00
Avasam
3c24501bb7 openpyxl: Use "Incomplete" instead of "Any" (#9488) 2023-01-10 17:54:06 +00:00
Benjamin Jones
d084079fc3 openpyxl stub: add open as an alias for load_workbook (#9324) 2022-12-02 23:24:48 +00:00
Nikita Sobolev
18e2ae762b Mark first argument of __[get|set|del]attr__ as str (#9245) 2022-11-22 11:06:50 +00:00
Nikita Sobolev
62a6c3d616 Annotate known magic-method return types (#9131) 2022-11-08 18:28:42 +00:00
Alex Waygood
43a9ab08d7 Always use TypeAlias when assigning to Any (#8021) 2022-06-05 18:16:20 -07:00