Skip to content

NamespacePackageEncountered exception docstring needs revisiting? #272

@nathanjmcdougall

Description

@nathanjmcdougall

This error doesn't seem to be raised anymore in the codebase itself, since namespace packages are now supported at the top level, I think the docstring should probably be updated.

class NamespacePackageEncountered(GrimpException):
"""
Indicates that there was no __init__.py at the top level.
This indicates a namespace package (see PEP 420), which is not currently supported. More
typically this is just an oversight which can be fixed by adding the __init__.py file.
"""

Perhaps something like

class NamespacePackageEncountered(GrimpException):
    """
    Indicates that there was unexpectedly no __init__.py at the top level.

    This indicates a namespace package (see PEP 420). Previously, Grimp did not support this situation.
    This error is kept for backward-compatibility reasons and is not raised by Grimp itself anymore.
    """

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions