Skip to content

if/else block parse problem #533

Closed
Closed

Description

@JukkaL

Mypy complains about this code, even though it should be valid:

if type in ('d', 'D'): cmd = 'TYPE A'; isdir = 1
else: cmd = 'TYPE ' + type; isdir = 0

(this is from Python 3.2 Lib/urllib/request.py)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions