You can ignore mypy checks on a individual lines as answered here. Is there a way to ignore mypy for a full function?
mypy checks can be ignored for a full function by adding @typing.no_type_check
decorator on top of the function.
import typing
@typing.no_type_check
def some_function():
...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With