-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Continuation of WIP: Type Annotations #2941
Closed
Closed
Changes from all commits
Commits
Show all changes
84 commits
Select commit
Hold shift + click to select a range
97c2312
Type annotations: Image.py.
neiljp 43b704b
Type annotations: Switch to type alias for Mode & add self.im annotat…
neiljp bd4e593
Type annotations: Adjust Filter import.
neiljp cd26623
Type annotations: Adjust __repr__ return & ignore ne/eq.
neiljp 0b00559
Type annotations: Add stubs for _imaging; aliases into aliases.py.
neiljp 9625b79
Type annotations: Mark Image.draft to accept (Mode, Size).
neiljp 850e28a
Type annotations: Add & use Extrema type alias.
neiljp 5979e0e
Type annotations: Improve Image.getproject().
neiljp cbe9522
Type annotations: Improve imports in Image.py.
neiljp 2c76f3b
Type annotations: Explicitly mark some Image data types.
neiljp 898c83d
Type annotations: Correct Image/ImagingCore annotations.
neiljp 04f7ac3
Type annotations: Annotate exclusive_fp.
neiljp 363e409
Type annotations: Annotate self.tile & add FIXME.
neiljp 4c45a31
Type annotations: Add Union & Any to aliases.py.
neiljp 2d0fb6b
Type annotations: Amend eq/ne to be (object)->bool.
neiljp cb535be
Type annotations: Amend __setstate__ to accept Tuple.
neiljp 0541e23
Type annotations: Enable Image.filter to also accept Callable returni…
neiljp 2110a7f
Type annotations: Amend Image.point parameter types.
neiljp cf043ed
Type annotations: Correct pixel_access & specify self.readonly.
neiljp 48e183e
Type annotations: _imaging.pyi: Significantly improve stubs.
neiljp 2ab28d5
Type annotations: Allow Image.putpalette to accept ImagePalette.
neiljp 910236f
Type annotations: Clarify return type of Image.split.
neiljp 5515520
Type annotations: aliases.py: Amend Extrema to use float & int Tuples.
neiljp 636e740
Type annotations: Amend Image.getdata to return ImagingCore.
neiljp 10e2908
Type annotations: Image.rotate bool->int for a parameter.
neiljp ab40a28
Type annotations: Switch open/save BytesIO->BinaryIO.
neiljp 1af8658
Type annotations: Label all obvious issues and label with 'FIXME TYPI…
neiljp 1c0acf8
Type annotations: aliases.py: Add Color type-alias (no Text).
neiljp 8db8e32
Type annotations: Image.py: Improve many annotations.
neiljp 72393d7
Type annotations: _imaging.pyi: Many improvements.
neiljp 46cb90f
Type annotations: Image.py: Correct _conv_type_shape & add _MODE_CONV.
neiljp 5ee8094
Type annotations: Image.py: Initial annotation for expression analyzer.
neiljp 8929e1e
Type annotations: _imaging.pyi typo.
neiljp d6f89c1
Type annotations: Image.py: Amend Image.resize given new parameter.
neiljp c23c755
Type annotations: Image.py: Annotation for not-installed handler.
neiljp 6353c15
Type annotations: Image.py: Add _show and _showxv annotations.
neiljp f4765c9
Type annotations: _imaging.pyi: Add preliminary merge() stub.
neiljp 9f011aa
Type annotations: _imaging.pyi: Amend Image.resize after API change.
neiljp be22cc3
Type annotations: aliases.py: Remove Any.
neiljp af9c0a1
clarifying type annotations
wiredfool 2e94a2e
Move fp handling into ImageFile
wiredfool b2b035f
Use Color type for fillcolor
wiredfool 79a09a2
src reorg
wiredfool 352c4d0
make target for typecheck
wiredfool d4604bb
Remove case for when _imaging module is not present
wiredfool 3ebc0f2
Don't reassign crc on close
wiredfool f55c6eb
Type tags for TiffTags
wiredfool 90a7414
Fix PyAccess type error
wiredfool e33706b
Typing, return required
wiredfool a0666cc
Typing: __array_interface__
wiredfool 3697f87
Typing: *args to _getencoder, _getdecoder, tobytes, frombytes
wiredfool 4aaa3cb
Added mypy cache to gitignore
wiredfool 6e79536
Typing: quantize
wiredfool 00fef4b
Typing: ImageFilter Image.filter.
wiredfool 9a0c10e
Typing: Image.getcolors
wiredfool 2ce902a
Typing: Image.getextrema
wiredfool 4d06d70
Typing: Additional extrema types
wiredfool 13e1902
Tabs->spaces
wiredfool bebece4
Typing: relaxed type for MultiChannelExtrema
wiredfool a0bdadf
Typing: Clarify that this is a single band extrema
wiredfool 6e45d8d
Typing: UNDONE-- Mostly complete paste with working type annotations
wiredfool 1f1b90f
Ignore that which mypy gets wrong
wiredfool 42086c3
Typing: Image.alphacomposite
wiredfool 02e1080
Typing: Image.putalpha
wiredfool 3ee774e
Typing: Ignore py2/py3 differences
wiredfool 83124c5
Typing: resize -- ignore tuple manipulations
wiredfool 864e953
Typing: Image.transform
wiredfool 4b47177
Typing: Image.save
wiredfool e220e00
Typing: Image.getchannel
wiredfool 404d6f3
Whitespace
wiredfool a5c66e4
Typing: Image.transform
wiredfool 95cf0a6
Typing: additional imports
wiredfool 18f5f2c
Typing: Image.frombytes
wiredfool 0bbfb3b
Typing: Image.frombuffer
wiredfool 4b241c4
Typing: Image.fromarray
wiredfool db0e083
Typing: Image.open
wiredfool 523c450
Typing: _imaging.clear_cache
wiredfool 132ce41
Typing: TiffImagePlugin: ignore meta stuff
wiredfool bee5068
Typing: ImageShow typehints
wiredfool 4a30b7a
Typing: Ignore forcibly setting things to errors
wiredfool 02a1aa4
Typing: Note about fromarray and the buffer interface
wiredfool 45752d2
Merge branch 'master' into pr_2687
radarhere 14e7f8a
Lint fixes
radarhere fdebb6f
Merge branch 'master' into pr_2687
radarhere File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,3 +81,4 @@ Tests/images/README.md | |
Tests/images/msp | ||
Tests/images/picins | ||
Tests/images/sunraster | ||
/.mypy_cache/ | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section of .gitignore is for "Extra test images installed from pillow-depends/test_images". Better place is "Unit test / coverage reports"