Skip to content

0.25.5 dropped py.typed file breaking mypy type checkingΒ #751

@nairb774

Description

@nairb774

Describe the bug

The 0.25.5 release seems to have dropped the py.typed from the wheel causing mypy to assume there are no types in the package. The result is a bunch of type errors that weren't there before.

Additional context

No response

Version of responses

0.25.5

Steps to Reproduce

Here is what I'm seeing when I pull the 0.25.3 and 0.25.5 releases from pypi and dumped the contained files.

$ sha256sum responses-0.25.3-py3-none-any.whl responses-0.25.5-py3-none-any.whl
521efcbc82081ab8daa588e08f7e8a64ce79b91c39f6e62199b19159bea7dbcb  responses-0.25.3-py3-none-any.whl
b3e1ae252f69301b84146ff615a869a4182fbe17e8b606f1ac54142515dad5eb  responses-0.25.5-py3-none-any.whl

Expected Result

$ unzip -t responses-0.25.3-py3-none-any.whl
Archive:  responses-0.25.3-py3-none-any.whl
    testing: responses/__init__.py    OK
    testing: responses/_recorder.py   OK
    testing: responses/matchers.py    OK
    testing: responses/py.typed       OK
    testing: responses/registries.py   OK
    testing: responses/tests/__init__.py   OK
    testing: responses/tests/test_matchers.py   OK
    testing: responses/tests/test_multithreading.py   OK
    testing: responses/tests/test_recorder.py   OK
    testing: responses/tests/test_registries.py   OK
    testing: responses/tests/test_responses.py   OK
    testing: responses-0.25.3.dist-info/LICENSE   OK
    testing: responses-0.25.3.dist-info/METADATA   OK
    testing: responses-0.25.3.dist-info/WHEEL   OK
    testing: responses-0.25.3.dist-info/top_level.txt   OK
    testing: responses-0.25.3.dist-info/RECORD   OK
No errors detected in compressed data of responses-0.25.3-py3-none-any.whl.

Actual Result

$ unzip -t responses-0.25.5-py3-none-any.whl
Archive:  responses-0.25.5-py3-none-any.whl
    testing: responses/__init__.py    OK
    testing: responses/_recorder.py   OK
    testing: responses/matchers.py    OK
    testing: responses/registries.py   OK
    testing: responses-0.25.5.dist-info/LICENSE   OK
    testing: responses-0.25.5.dist-info/METADATA   OK
    testing: responses-0.25.5.dist-info/WHEEL   OK
    testing: responses-0.25.5.dist-info/top_level.txt   OK
    testing: responses-0.25.5.dist-info/RECORD   OK
No errors detected in compressed data of responses-0.25.5-py3-none-any.whl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions