I'm using pycharm 2016.1.
I have a function documented as follows:
def extract_filename(filepath, ext=None):
    """
    This function returns the filename from a complete filepath including its extension.
    If ext is set to an extension it is removed from the filename.
    Parameters
    ----------
    filepath : string
    ext : string
    Returns
    -------
    string
    """
    if ext[0] != ".":
        ext = "." + ext
    filename = filepath.split("/")[-1]
    if ext is not None:
        filename = filename.split(ext)[0]
    return filename
I was expecting that once this documentation is in place, I'd be able to see it in the quick documentation window that pops up when I press CTRL + Q. However, this is not the case. The window only shows type inference:
def extract_filename(filepath, ext=None) Inferred type: (filepath: Union[str, unicode], ext: Union[str, unicode]) -> Union[str, unicode]
What am I missing here? I thought that by documenting my function its description and parameters would show up nicely formatted.
I found this post: Documenting Python parameters in docstring using PyCharm. However wish to use the NumPy format for writing documentation.
Thanks!
 
     
     
    