> On 9 Feb 2020, at 14:01, Soni L. <fakedme...@gmail.com> wrote:
> 
> 
> into this:
> 
> [snip]
> 
> def my_fn(@MyTrait x):
>     x.x()

Can't you look at typing info or something instead? That is a lot of 
boilerplate and ceremony even after your proposed addition. 

So:

@traits
def my_fn(x: MyTrait):
    x.x()

/ Anders 
_______________________________________________
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/WEUJRK7D4KJYSEBGAJHNK5T4Y2QXIS66/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to