Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Allowing None to parse #88

Copy link
Copy link
@jamesbraza

Description

@jamesbraza
Issue body actions

As of docstring_parser==0.16, parse is actually safe to being input None as the text.

Can we type hint it to allow this? That way, parse can be invoked on functions that don't have a __doc__ attribute:

from docstring_parser import parse

def foo():
    pass

parse(foo.__doc__)  # This is runtime safe, just needs to be type safe
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.