-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mypy implementation for adapters in tiled (#700)
* some more changes * typed zarr.py * typed tiff.py * xarray.py typed * some more typing added * some more typing. still few problems in mapping.py * more typing * still 1 mypy problem left * docstring skeletons added * some more improvement * solved some docs build problems * few more changes * change type_alliases.py * some more changes * some more changes * update python to 3.11 in doc compilation * fixed failing tests * Add protocols * change docs python to 3.10 * preliminary addressing to the comments * some tests for protocols * some corrections in protocols tests * fix small bug in test_protocols.py * try to solve EllipsisType that only exists in python 3.10 * change python version check * some more fix * Bump Python version of docs build. * tests * some more unit tests for protocols * add accesspolicy protocol tests * few more fixes * python 3.8 MutableMapping problem: try to replacse with the one from typing * try to change collections.abc.MApping with typing.Mapping if python<3.8 * small fixes for typing errors appeared in python 3.8 * one more typing fix for python 3.8 * some more fix python3.8 * Type awkward buffers dict more strictly * Tighten typing on data_uris. * Fix typing of partition parameter in read_partition. * Zarr accepts array data, not dataframe/tabular. * Remove commented unused code * Fix typo * Fix type of partition * added a changelog entry * Make python-version consistent for docs --------- Co-authored-by: Seher Karakuzu <[email protected]> Co-authored-by: Dan Allan <[email protected]>
- Loading branch information
1 parent
3d83726
commit 143dd22
Showing
36 changed files
with
3,049 additions
and
452 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### Checklist | ||
- [ ] Add a Changelog entry | ||
- [ ] Add the ticket number which this PR closes to the comment section |
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 @@ | ||
[mypy] | ||
ignore_errors = True | ||
ignore_missing_imports = True | ||
disallow_untyped_defs = False | ||
disallow_untyped_calls = False | ||
check_untyped_defs = False | ||
disallow_incomplete_defs = False | ||
|
||
|
||
[mypy-tiled.adapters.*] | ||
ignore_errors = False | ||
ignore_missing_imports = False | ||
check_untyped_defs = True | ||
disallow_untyped_defs = True | ||
disallow_incomplete_defs = True | ||
disallow_untyped_calls = True | ||
disallow_untyped_decorators = True | ||
|
||
[mypy-tiled._tests.test_protocols] | ||
ignore_errors = False | ||
ignore_missing_imports = False | ||
check_untyped_defs = True | ||
disallow_untyped_defs = True | ||
disallow_incomplete_defs = True | ||
disallow_untyped_calls = True | ||
disallow_untyped_decorators = True |
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
Oops, something went wrong.