On Tue, Apr 28, 2015 at 9:03 AM, Jarrad Hope <m...@jarradhope.com> wrote:
> Hello
>
> Been using astroid extensively this past week, really enjoying it! Great work!

Thank you.

>
> What's the best way I can deliberately set the type of an argument,
> based on the function annotations?

Currently we don't have any mechanism for this (but it is something
that we want). One way to do it would be to add a Transform in
astroid.brain for Function nodes, which checks that it has
annotations, infers them and replaces the default inference with that
one.
_______________________________________________
code-quality mailing list
code-quality@python.org
https://mail.python.org/mailman/listinfo/code-quality

Reply via email to