Typing

SDKite commes natively with type hints, which are checked by mypy.

The benefits are twofold:

  • Improve the correctness of the code of the library itself;
  • Allow users of the library to benefit from well-defined type hints on the public API.

As a rule of thumbs, we follow Postel's law by being as vague as possible for the arguments of functions, and as precise as possible for the returned values.