Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with TypeVarTuple typing #223

Open
St4rG00se opened this issue Jun 7, 2024 · 0 comments
Open

Error with TypeVarTuple typing #223

St4rG00se opened this issue Jun 7, 2024 · 0 comments

Comments

@St4rG00se
Copy link

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 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant