Ruairidh MacLeod <r.macl...@epcc.ed.ac.uk> added the comment:

The original code for this was:

```
from typing import List
from unittest.mock import call

def f(n: List[call]): ...
```

Which produces "SyntaxError: Forward reference must be an expression -- got ''".

I think my only query is whether this behavior is ok, or whether it should 
produce the clearer "TypeError: Parameters to generic types must be types" 
message instead?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40582>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to