This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author David E. Franco G.
Recipients David E. Franco G.
Date 2016-09-07.02:19:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473214790.93.0.488939251151.issue27989@psf.upfronthosting.co.za>
In-reply-to
Content
the issue is that when calling help on a function annotated with typing, all the relevant information is lost, for example

from typing import List, Any, Iterator, Tuple

def foo(data:List[Any]) -> Iterator[ Tuple[int,Any] ]:
    ...
 
when calling help on that

>>> help(foo)
Help on function foo in module __main__:

foo(data:typing.List) -> typing.Iterator

>>> 

all the information is lost, the output should look like this

>>> help(foo)
Help on function foo in module __main__:

foo(data:List[Any]) -> Iterator[ Tuple[int, Any] ]:

>>> 

where all the information that I put in the annotation is preserved and the typing.* are eliminated since they only add unnecessary noise

while reporting this issue in the typing module (https://github.com/python/typing/issues/279) I was told that is a bug with the inspect module and that help may need modification.

Thank for your time.
History
Date User Action Args
2016-09-07 02:19:50David E. Franco G.setrecipients: + David E. Franco G.
2016-09-07 02:19:50David E. Franco G.setmessageid: <1473214790.93.0.488939251151.issue27989@psf.upfronthosting.co.za>
2016-09-07 02:19:50David E. Franco G.linkissue27989 messages
2016-09-07 02:19:50David E. Franco G.create