Check that no untyped functions are called [no-untyped-call]
If you use —disallow-untyped-calls
, mypy generates an error when youcall an unannotated function in an annotated function.
Example:
- # mypy: disallow-untyped-calls
- def do_it() -> None:
- # Error: Call to untyped function "bad" in typed context [no-untyped-call]
- bad()
- def bad():
- ...