Commit Graph

100 Commits

Author SHA1 Message Date
Avasam
3719f02dbf Using precise code for pyright: ignore and re-enabling various pyright tests (#12576) 2024-08-22 03:34:52 +02:00
Ali Hamdan
08b9c86488 Use assignments for enums in pillow (#11959) 2024-05-19 12:13:48 +02:00
Nikita Sobolev
d07ba24f3c Add typehints for open in PIL.WallImageFile (#11887) 2024-05-10 10:29:09 +02:00
Eric Traut
17f1c4628a Add precise values for enum members where possible (#11299)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
2024-04-22 15:10:59 +01:00
github-actions[bot]
6bd45561b0 [stubsabot] Mark Pillow as obsolete since 10.3.0 (#11698) 2024-04-14 14:52:21 +02:00
Sebastian Rittau
c0a44be33f Depend on Pillow instead of types-Pillow (#11720) 2024-04-05 13:30:27 +02:00
Sebastian Rittau
33de88879f Remove bare Incomplete annotations in third-party stubs (#11671) 2024-03-30 18:34:51 -07:00
Viktor
f337eb8a51 [Pillow] Annotate ImageSequence.pyi (#11625) 2024-03-23 14:11:29 +01:00
Shantanu
88fa182253 Use PEP 570 syntax in third party stubs (#11554) 2024-03-10 14:11:43 +01:00
pa-tna
2c43162728 Pillow: Allow float(s) for cutoff param of autocontrast (#11409) 2024-02-12 14:07:03 +01:00
Andrew Murray
3e021f3330 Pillow: ImageOps.autocontrast can set low and high cutoffs separately (#11408)
ImageOps.autocontrast can set low and high cutoffs separately
2024-02-12 08:20:44 +01:00
Avasam
489e8309b5 Type obj parameter of PIL.Image.fromarray (#11176) 2024-02-05 05:42:52 -08:00
Adam Dangoor
b6d121600e Add a number of properties to PIL.ImageStat.Stat (#11303) 2024-01-24 13:39:05 +01:00
Sebastian Rittau
cb9892477d [Pillow] Update to 10.2.* (#11232) 2024-01-10 11:51:02 +01:00
Sebastian Rittau
b6eaadcfe5 Update typing_extensions imports in third-party stubs (#11245) 2024-01-05 15:40:13 +01:00
Jelle Zijlstra
0c7bdffa90 third-party: make some protocol params pos-only (#11006) 2023-11-10 07:40:10 +01:00
Alex Waygood
516f665505 Bump flake8-pyi to 23.11.0 (#10997) 2023-11-08 16:01:24 +00:00
Avasam
f99e8b0615 Bump Pillow to 10.1.* (#10897) 2023-10-16 22:34:45 +01:00
mobyw
fed788f2eb [Pillow] Fix typing of FreeTypeFont.getlength (#10663) 2023-09-05 14:02:14 +02:00
Sebastian Rittau
afe18e95a9 Add an upstream_repository field to METADATA.toml (#10487)
Closes: #10478
2023-07-20 16:45:41 +02:00
David Robertson
338e067ec4 Pillow: mark MAX_IMAGE_PIXELS as non-final (#10445) 2023-07-12 15:11:48 +01:00
Sebastian Rittau
f96505474d Bump Pillow to 10.0.* (#10411) 2023-07-06 15:05:38 +01:00
Sebastian Rittau
edff8874da [Pillow] Replace Any with Incomplete (#10409) 2023-07-06 14:48:50 +01:00
Sebastian Rittau
1e6b8a9b88 [Pillow] Update TiffImagePlugin for Python 3.11 (#10399)
Also type the methods forwarded from Fraction and replace
`Any` with `Incomplete`.
2023-07-06 15:34:49 +02:00
John Villalovos
65a6a195f2 Pillow: Add tuple[int, int] to _Color TypeAlias (#10407) 2023-07-05 11:31:30 +03:00
Naveed Jooma
aab9fdd86a [PIL] Make return type of PyDecoder.decode a tuple (#10381) 2023-06-28 13:47:49 -07:00
Avasam
db0149859c Add partial_stub metadata field (#10157) 2023-05-10 17:04:18 +02:00
Avasam
a584b43769 [Pillow] Add all missing items (#10114) 2023-05-10 08:34:26 +02:00
David Robertson
f7443a748e Add a return type for PIL.Image.load (#9466)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-04-26 19:46:54 +03:00
Jeff Dairiki
f39ffea00f [Pillow] Add Base and GPS enums in PIL.ExifTags (#10051) 2023-04-17 12:52:21 +02: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
Akuli
87c1b949cd Delete some unnecessary type aliases in tkinter (#9970) 2023-03-28 20:37:29 +03:00
Alex Waygood
6fd7e36e80 Add default values for third-party stubs beginning with 'P' (#9957) 2023-03-27 18:58:53 +01:00
Avasam
52ec44fa58 Improve many __(a)exit__ annotations (#9696) 2023-02-25 21:50:30 +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
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
Spencer Brown
f5b761d465 Add types for PIL.ImageTk (#9733) 2023-02-18 21:50:28 +02:00
Alex Waygood
7180d0223b Use typing_extensions.Self instead of _typeshed.Self (#9702) 2023-02-15 11:32:43 +01:00
Avasam
140bba3425 Add comments when subclassing Any (#9732) 2023-02-14 14:11:56 +01:00
Anders Kaseorg
afb7704b36 Pillow: Add missing enums from 9.1.0 (#9698) 2023-02-09 11:03:50 +01:00
Avasam
372073d35b Use _typeshed.FileDescriptorOrPath in stubs (#9695) 2023-02-09 08:30:19 +01:00
Alex Waygood
0ef9c3f8e8 Enable flake8-pyi's Y037 (#9686) 2023-02-06 19:01:02 -08:00
Nikita Sobolev
f7cb7f33b2 Use OSError instead of IOError (#9683) 2023-02-06 18:56:32 +00:00
Alex Waygood
8e7b78a8e8 Bump black to 23.1.0 (#9647) 2023-02-01 06:06:04 -08:00
Avasam
6ac24ed923 Replace Any with Incomplete in many places (#9565) 2023-01-18 19:12:46 +00:00
Alex Waygood
4fea314594 Replace Any with Incomplete in many places (#9558) 2023-01-18 08:48:16 +00:00
Avasam
a991234832 types-Pillow: Allow stubtest to validate PIL.FpxImagePlugin and PIL.MicImagePlugin (#9531) 2023-01-17 16:37:17 +00:00
Avasam
1a9aa3f3fe Update various comments now non-types dependencies are allowed (#9527) 2023-01-14 13:20:04 +00:00
Avasam
1946907451 Allowlist-only fixes for stubtest on Windows (#9522) 2023-01-13 12:45:38 +00:00