Hi John,

I think we need to wait until we drop Python 2.x support to be able to do 
this, as 2.x won't accept this syntax. Does that sound right?

Thanks,
Collin

On Sunday, October 11, 2015 at 9:22:17 AM UTC-4, John Michael Lafayette 
wrote:
>
>  Python now has static type checking. All you do is follow function 
> parameters with ": paramType" and add "-> returnType" before the colon at 
> the end of the function declaration and auto-complete will work on the 
> return value in IntelliJ. Can you add the function parameter types and 
> return types to all the functions in the public API? 
>
> > So like change this... 
> > def func(param): 
> > 
> > To this... 
> > def func(param: int) -> str: 
>
> That way when I call a function, the static type checker will make sure I 
> pass in the right type.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/81f6b5a2-14a2-4a7a-82c4-74d3016ff59f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to