davidhalter / davidhalter/parso

Error with `TypeVarTuple` typing

Open
#223 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
679
Forks
120
PR merge metrics
No merged PRs in 30d

Description

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:
```python
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 ;)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.