In brief
inspect.signature() exposes parameters and return annotations for many callables. It helps tooling describe and check an expected interface.
Useful to know
inspect.signature() exposes parameters and return annotations for many callables. It helps tooling describe and check an expected interface. [1]
Not every object provides equally rich information. An annotation does not guarantee the actual result, and dynamic calls still need error handling. Use inspection for description and argument binding rather than treating it as a check of complete behaviour.
Sources
For further detail and to check the information: