Universum icon indicating copy to clipboard operation
Universum copied to clipboard

Implement static type checking using mypy

Open i-keliukh opened this issue 6 years ago • 0 comments

mypy provides mechanism for statically checking types. Applying static typing requires adding type annotations (comments) and some refactoring.

Specifically, the entire gravity module and Dependency class from it should be changed a little. The Dependency must inherit from Generic[T] and get actual type using typing_inspect.get_origin() and typing_inspect.get_args(). The type has to be propagated to other places as well.

i-keliukh avatar Mar 04 '19 09:03 i-keliukh