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.

Fix None inside of [] in type hints #442

Closed

Description

Something like this warns about use-before-def on None:

from typing import Generator

def fun() -> Generator[int, None, None]:
    yield from range(10)

None needs to be added early like True and False, as per comments in #429.

Making a separate issue from #391 to better distinguish the two separate bugs.

Activity

  1. added a commit that references this issue on Dec 3, 2018
    69a34ca
  2. added a commit that references this issue on Nov 1, 2019
    85c1ed7
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