-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
bool
to supported types and improve type specification. (#141)
This adds boolean to the supported sparse coordinate types and also improves the type definition of coordinate types to ensure that the values in each type are homogeneous: BadCoord = Union[int, str] BadCoords = Union[BadCoord, Sequence[BadCoord]] # ["this", 1] is bad, but is a valid as a BadCoords value GoodCoord = TypeVar("GoodCoord", int, str) GoodCoords = Union[GoodCoord, Sequence[GoodCoord]] # ["this", 1] is bad, and is *not* valid as a GoodCoords value # ["this", "that"] is a valid as a GoodCoords value # [1, 2] is valid as a GoodCoords value
- Loading branch information
1 parent
b337106
commit 4027413
Showing
3 changed files
with
27 additions
and
19 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