Skip to content

RepeatedLabelError is not a known attribute of module "usaddress" #398

@mazg95

Description

@mazg95

Pyright is reporting an error when trying to access RepeatedLabelError:

error: "RepeatedLabelError" is not a known attribute of module "usaddress" (reportAttributeAccessIssue)

This is probably because __init__.pyi has not a definition for the class.

So Python (at runtime) can import and use it just fine, however, because it is omitted in __init__.pyi, Pyright can’t “see” it.

Type Checker: Pyright
Version: v1.1.398
Python: 3.12.11
usaddress: 0.5.16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions