Skip to content

bind_self mistakenly binds non-positional parameters #1333

@sharkdp

Description

@sharkdp

Observe how *args is wrongly "bound" here:

from ty_extensions import CallableTypeOf

class C:
    def method(*args, **kwargs) -> None: ...

def _(c: CallableTypeOf[C().method]):
    reveal_type(c)  # (**kwargs) -> None

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions