Gobot1234 <[email protected]> added the comment:
I also support this change. I've had to write a lot of code to make
SpecialForms able to accept my types where the code has to look like:
```py
class Something:
...
def __call__(self, *args, **kwargs):
raise NotImplementedError
```
I also know this comes up in typing-extensions a fair bit. I think type
checkers should be enforcing this at type-checking-time not by typing.py
run-time.
----------
nosy: +Gobot1234
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue46644>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com