Skip to content

Commit

Permalink
Remove type alias for column names
Browse files Browse the repository at this point in the history
  • Loading branch information
heikomuller committed Nov 10, 2020
1 parent 075db11 commit afce1b4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions histore/document/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,13 @@ def __init__(self, colid: int, name: str, colidx: Optional[int] = None):


"""Type alias for column lists."""
Columns = Union[str, int, List[Union[int, str]]]
# Column names are strings or column objects.
ColumnName = Union[str, Column]
# Reference to a column in a data frame schema. Columns can be referenced by
# Reference to a column in a dataset schema. Columns can be referenced by
# their name or index position in the dataset schema.
ColumnRef = Union[int, str, Column]
ColumnRef = Union[int, str]
# Reference to one or more columns in a dataset schema.
Columns = Union[ColumnRef, List[ColumnRef]]
# The schema of a dataset is a list of column names.
Schema = List[ColumnName]
Schema = List[str]


# -- Helper methods -----------------------------------------------------------
Expand Down

0 comments on commit afce1b4

Please sign in to comment.