Environment
responses==0.17.0
mypy==0.931
Python 3.8.12
disallow_untyped_decorators = True in mypy.ini
Steps to Reproduce
After upgrade to responses==0.17.0, reran mypy with settings unchanged from before.
Expected Result
mypy passes as happened with responses==0.16.0
Actual Result
Every instance of @responses.activate throws up:
error: Untyped decorator makes function "<function_name>" untyped [misc]
@responses.activate
The issue seems to be related to the change here where the type hint for activate was changed from a callback protocol to Any.
Environment
responses==0.17.0mypy==0.931Python 3.8.12disallow_untyped_decorators = Trueinmypy.iniSteps to Reproduce
After upgrade to
responses==0.17.0, reranmypywith settings unchanged from before.Expected Result
mypypasses as happened withresponses==0.16.0Actual Result
Every instance of
@responses.activatethrows up:The issue seems to be related to the change here where the type hint for
activatewas changed from a callback protocol toAny.