Skip to content

False positive on overload implementation does not accept all possible arguments with varargs #19612

@hauntsaninja

Description

@hauntsaninja
from typing import overload

@overload
def foo(x: int) -> None: ...
@overload
def foo(a: str, /) -> None: ...

def foo(*args: int | str, **kw: int) -> None:
    pass
test59.py:8: error: Overloaded function implementation does not accept all possible arguments of signature 1 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions