Skip to content

When base class has type 'Any', super().__init__() args should be unconstrained #1067

Description

@gvanrossum

Demo:

from typing import Any
A = ...  # type: Any
class C(A):
    def __init__(self):
        super(C, self).__init__(1, 2, 3)  # E: Too many arguments for "__init__" of "object"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions