Skip to content

report invalid overload implementation when implementation is unannotated #1232

@KotlinIsland

Description

@KotlinIsland

Summary

from typing import overload

@overload
def f(a: int) -> int: ...

@overload
def f(a: str) -> str: ...

def f(a):
    return 1  # expect error about this implementation being invalid

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    overloadswishNot on the current roadmap; maybe in the future

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions