Skip to content

Type[Any] and type are not equivalent #2655

Closed

Description

@roganov

From typing docs:

Type[Any] is equivalent to Type which in turn is equivalent to type, which is the root of Python’s metaclass hierarchy.

But this code produces error:

from typing import *
y: type
x: Type[Any] = y

error: Incompatible types in assignment (expression has type "type", variable has type Type[Any])

Activity

  1. added a commit that references this issue on Mar 14, 2017
    81df467
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions