Skip to content

func module might be None #18

@blueyed

Description

@blueyed

In getmodule_for_member func0.__module__ might be None, causing a KeyError:

return sys.modules[func0.__module__]

This is the case for an __init__ method generated by attrs for example.

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