Showing posts with the label annotations

[FIXED] Typing an unimported module

Issue I have a Python package that has an optional [extras] dependency, yet I want to adhere to typ…

[FIXED] How to annotate a type that is a combination of multiple duck-types?

Issue Let's say I want to annotate the parameter to a function, and it should satisfy both typi…

[FIXED] Modelica annotation derivative: noDerivative versus zeroDerivative

Issue I have successfully used annotation(derivative) in Modelica functions. Now I have reached a …

[FIXED] Python void return type annotation

Issue In python 3.x, it is common to use return type annotation of a function, such as: def foo() …

[FIXED] Python type annotations: Proper way to annotate functions returning library object

Issue What is the proper way to annotate a type function returns in this code? from requests impor…