Skip to content

include type parameters in display of generic callables #1207

@KotlinIsland

Description

@KotlinIsland

Summary

def f[T: int](t: T) -> T:
    return t

x = [f]

here x is shown as list[Unknown | ((t: T@f) -> T@f)]

excusing the Unknown, i would expect the type parameters to be included
[T: int](t: T) -> T

Version

0b60584b7

connected with: #1225

Metadata

Metadata

Assignees

No one assigned

    Labels

    diagnosticsRelated to reporting of diagnostics.genericsBugs or features relating to ty's generics implementationgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions