Commit 08f929b
authored
[conformance suite] Fix inaccurate comment in
[conformance suite] Fix inaccurate comnent in `protocols_generic.py`
This comment states that this class fails at runtime, but that isn't true:
```pycon
>>> from typing import *
>>> T_co = TypeVar("T_co")
>>> class Proto2(Protocol[T_co], Generic[T_co]): ...
...
>>>
```
The comment should instead quote the spec [here](https://typing.python.org/en/latest/spec/protocol.html#generic-protocols), which states that type checkers should consider it an error (even though it does not fail at runtime)protocols_generic.py (#2166)1 parent 444e43e commit 08f929b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments