Skip to content

Error with TypeVarTuple typing #223

@St4rG00se

Description

@St4rG00se

Hello!

I'm using mutmut for my mutation tests but I get this KeyError error with python 3.11 TypeVarTuple typing syntax :

Example of code:

T = TypeVar('T') 
Ts = TypeVarTuple('Ts') 

def append(tpl: tuple[*Ts], value: T) -> tuple[*Ts, T]:
    return tpl + (value,)

result :

KeyError: ReservedString(*)

This it because of the * in the function signature

Thx ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions