getsentry / responses

A utility for mocking out the Python Requests library.
Apache License 2.0
4.14k stars 354 forks source link

fix mypy issue #674

Closed beliaev-maksim closed 1 year ago

beliaev-maksim commented 1 year ago

Currently mypy is raising an error on master branch

responses/__init__.py:1051:32: error: Incompatible types in assignment (expression has type "PreparedRequest", variable has type "Request | None")  [assignment]

I do not know why mypy thinks that it could be None

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage is 100.00% of modified lines.

Files Changed Coverage
responses/__init__.py 100.00%

:loudspeaker: Thoughts on this report? Let us know!.