We could use a standardized docstring format, similar to what I often use;

def func1(msg, reps):
    """Returns a sequence of random permutations of a message.

       ARGUMENTS
       msg:string -- the message to be permuted.
       reps:int -- the number of permutations to generate.

       RETURNS
       list:string   # or whatever the right annotation syntax is.
    """

This should be easy to parse and generate an annotated version to run mypy 
against.  There would be no extra code clutter, and many would say that a 
docstring like this should always be written anyway.  A docstring parser 
like this might even be a good addition to mypy.
On Tuesday, June 29, 2021 at 1:25:51 PM UTC-4 Edward K. Ream wrote:

> On Tuesday, June 29, 2021 at 12:12:40 PM UTC-5 Edward K. Ream wrote:
>
> > My long-time interest in static type checking is nearing its end.
>
> One more thing. The make_stub_files projects seems to be completely 
> pointless now. I am going to update the readme to discourage its use.
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/c8386137-4f08-40bc-be3c-4f67d4b52fa4n%40googlegroups.com.

Reply via email to