Skip to content

mypy bug with try/except conditional imports #1153

Closed
@timabbott

Description

@timabbott
try:
    import simplejson
except ImportError:
    import json as simplejson

resulst in the error error: Name 'simplejson' already defined

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions