Skip to content

Pyre does not reason about if statements with logical operators #903

Open
@bigfootjon

Description

@bigfootjon

Pyre Bug

Pyre does not reason about complex if statements. This is used in e.g. aiohttp:

https://github.com/aio-libs/aiohttp/blob/master/aiohttp/client.py#L1034

Reproduction steps

(try commenting and uncommenting the various options to see the various results)

Expected behavior
All of the above if statements should report a type error

Logs
See playground link

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions