Closed
Description
Repro:
class M(type):
def __init__(cls, name, base, attrs) -> None:
type.__init__(cls, name, base, attrs) # E: Argument 1 to "__init__" of "type" has incompatible type "M"; expected "type"
This appears to be a regression due to #2825 "Treat type equivalent to Type[Any]; fixes #2655" (@ilevkivskyi, reviewed by @ddfisher).