Marco Barisione added the comment:
Actually, sorry I realise I can pass `include_extras` to `get_type_hints`.
Still, it would be nicer not to have to do that.
--
___
Python tracker
<https://bugs.python.org/issue39
Marco Barisione added the comment:
This is particularly annoying if you are using `Annotated` with a dataclass.
For instance:
```
from __future__ import annotations
import dataclasses
from typing import Annotated, get_type_hints
@dataclasses.dataclass
class C:
v: Annotated[int, &quo
New submission from Marco Barisione :
The generation of pickle files in load_grammar in lib2to3/pgen2/driver.py is
racy as other processes may end up reading a half-written pickle file.
This is reproducible with the command line tool, but it's easier to reproduce
by importing lib2to3