On Tue, Apr 28, 2015 at 9:03 AM, Jarrad Hope <[email protected]> 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 [email protected] https://mail.python.org/mailman/listinfo/code-quality
