-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolving ruff ANN issues (work in progress)
- Loading branch information
1 parent
9845bc4
commit b163027
Showing
12 changed files
with
197 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from collections.abc import Sequence | ||
from typing import ( | ||
TypeAlias, | ||
) | ||
|
||
# ===== Arguments (Variables) ===================================================================== | ||
TNumeric: TypeAlias = int | float | ||
TValue: TypeAlias = int | float | bool | str # single (scalar) value, as e.g. also serialized to/from Json5 atom | ||
TTimeColumn: TypeAlias = list[int] | list[float] # X column, but limited to numeric types. Typically indicating time. | ||
TDataColumn: TypeAlias = list[int] | list[float] | list[bool] # | list[str] # X column | ||
TDataRow: TypeAlias = Sequence[TValue | Sequence[TValue]] # | TNumeric # X row without variable names (just values) | ||
TDataTable: TypeAlias = Sequence[TDataRow] # X table | ||
# TArguments: TypeAlias = Mapping[str, TValue] # X row with variable names # noqa: ERA001 | ||
# TArgs: TypeAlias = dict[str, TValue] # noqa: ERA001 | ||
|
||
|
||
# ===== System Interface ===================================================================== | ||
#: Arguments for 'get' action functions (component_variable_name, component_name, variable_references) | ||
TGetActionArgs: TypeAlias = tuple[str, str, tuple[int, ...]] | ||
#: Arguments for 'set' action functions (component_variable_name, component_name, variable_references, variable_values) | ||
TSetActionArgs: TypeAlias = tuple[str, str, tuple[int, ...], tuple[TValue, ...]] | ||
#: Arguments for action functions | ||
TActionArgs: TypeAlias = TGetActionArgs | TSetActionArgs |
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.