-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start working on supporting PEP 484 type hinting
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
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,17 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Defines type hint types for various common types in the package | ||
""" | ||
import typing | ||
|
||
from Stoner.core.setas import setas | ||
|
||
# Column Indices | ||
Single_Column_Index = typing.Union[str, int] | ||
Column_Index = typing.Union[typing.Sequence[Single_Column_Index], Single_Column_Index] | ||
|
||
# Setas | ||
Setas_Base = typing.Sequence[str] | ||
Setas_Dict = typing.Mapping[str, Column_Index] | ||
Setas = typing.Union[Setas_Base, Setas_Dict, str, setas] |
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