Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

None is being flagged as used before assignment  #335

Closed

Description

microsoft/vscode-python#3117

When None is used in a type hint it gets flagged as being used before assignment. In the following example every use of None is being flagged.

def f(b:None) -> None:
    b: None

Activity

  1. jakebailey commented on Nov 1, 2018

    @jakebailey
    Member

    I can reproduce this. I'll look into it.

  2. jakebailey commented on Nov 1, 2018

    @jakebailey
    Member

    Should be fixed in #336. 😃

    image

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

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions