Thanks to visit codestin.com
Credit goes to github.com

Skip to content

assertIsNotNone(foo) in tests is not treated the same as assert foo is not None #5088

Closed
@timabbott

Description

@timabbott

As part of Zulip's strict-optional effort, I had to convert a test that was using assertIsNotNone(foo) to use assert foo is not None in order to get mypy to pass. I think mypy should treat those two the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions