Also if such mode would exsist, it would be nice to have special keywords for 
such mode like `protocol`
Instead of writing:
```python
class MathType(Protocol):
    def reduce(self, *args) -> int:
        ...
```
it woulb be nicer to have special syntax:
```python-mypy
protocol MathType:
    def reduce(self, *args) -> int: ...
    def sum(self, *args) -> int: ...
```
It will make code more readable as for me
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/NYVCXKF7Y62F443OXIYMEPF2GZS3NOG6/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to