Skip to content

Commit ce4d6c2

Browse files
author
Tobias Kopp
committed
[Benchmark] Add type hints to benchmark script and connectors
We annotate each class, function, and variable with a type hint. While python does not have static types, these type hints make it easier to understand the whole benchmarking system. We also define type aliases for benchmark data as well as connector results indicating a clear structure for the underlying data. This makes it easier to understand the types and values one is dealing with, as nested dictionaries without type hints can be confusing. Furthermore, typeguard is used by annotating functions and classes with `@typechecked` in order to ensure that all variables and function return types fulfill the specified type.
1 parent a9f6693 commit ce4d6c2

File tree

6 files changed

+528
-481
lines changed

6 files changed

+528
-481
lines changed

0 commit comments

Comments
 (0)