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
Avasam
7fdbb7228c
Bump Pillow to 9.4 ( #9453 )
...
Closes #9448
2023-01-04 23:38:41 +01:00
Josiah Outram Halstead
540e0b0aa4
PIL: fix image convert palette type ( #9331 )
2022-12-05 13:36:30 +00:00
Steve Dignam
1c940e8914
PIL: add optimize param to save ( #9328 )
2022-12-05 00:16:54 +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
github-actions[bot]
ef788b899d
[stubsabot] Bump Pillow to 9.3.* ( #9039 )
...
Release: https://pypi.org/pypi/Pillow/9.3.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.2.0...9.3.0
Stubsabot analysis of the diff between the two releases:
- Total lines of Python code added: 4163.
- Total lines of Python code deleted: 3435.
If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR
Note that you will need to close and re-open the PR in order to trigger CI
Co-authored-by: stubsabot <>
2022-10-30 01:29:38 +01:00
Nikita Sobolev
ce4668a132
Use Incomplete instead of Any in __getattr__ ( #8903 )
2022-10-15 18:54:21 +01:00
Robert Schweizer
c9e6bd2df9
Allow PIL.Image.MAX_IMAGE_PIXELS to be None ( #8876 )
...
`_decompression_bomb_check()` explicitly checks for `None` and handles it as "unlimited".
2022-10-10 07:26:07 -07:00
Tdxdxoz
efeff93d21
fix: pillow.ImageDraw.textlength may return float ( #8773 )
2022-09-20 14:13:29 +01:00
ow0x
f074ef6803
[pillow] add new PIL.Image enums ( #8419 )
...
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com >
2022-07-28 14:20:52 -07:00
Shantanu
fb478f0b58
[stubsabot] Bump Pillow to 9.2.* ( #8226 )
2022-07-04 10:20:14 +02:00
Andrew Glick
0367fc94d9
Improve_Color type alias of PIL.Image ( #8210 )
...
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-07-04 07:46:03 +01:00
eggplants
c383e95286
Fix box parameter type of Pillow.PIL.Image.paste ( #8090 )
...
When executing `img.paste(cropped, box=(10.5, 10.5))`:
TypeError: 'float' object cannot be interpreted as an integer
So the `box` parameter's type should be not `tuple[float, float]` but `tuple[int, int]`. (same as `_Box`)
2022-06-16 16:50:14 -07:00
Crozzers
082faf0d29
Pillow: change _Mode type alias to str ( #7967 )
2022-05-27 11:16:41 +02:00
Crozzers
62a8a6922c
Pillow: Add missing image modes to _Mode type alias in Image.pyi stub (issue #7956 ) ( #7960 )
2022-05-26 19:00:48 +01:00