-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from matt-land/add-typing
Add types for #56 Missing type annotations
- Loading branch information
Showing
18 changed files
with
375 additions
and
102 deletions.
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# SPDX-FileCopyrightText: 2022 Matt Land | ||
# | ||
# SPDX-License-Identifier: MIT | ||
""" | ||
`adafruit_imageload.displayio_types` | ||
==================================================== | ||
This is a utility file for type aliases. | ||
https://mypy.readthedocs.io/en/stable/kinds_of_types.html#type-aliases | ||
Type aliases contain compound declarations (used many places in the project) with a single | ||
definition readable by humans. | ||
* Author(s): Matt Land | ||
""" | ||
try: | ||
from typing import Callable | ||
from displayio import Palette, Bitmap | ||
|
||
PaletteConstructor = Callable[[int], Palette] | ||
BitmapConstructor = Callable[[int, int, int], Bitmap] | ||
except ImportError: | ||
pass | ||
|
||
__version__ = "0.0.0-auto.0" | ||
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_ImageLoad.git" |
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.