Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[bug, typing] MyPy doesn't like attrs.converters #930

@henryiii

Description

@henryiii

In MyPy, using attrs.converters gives:

error: Module has no attribute "converters"  [attr-defined]

Adding an import attrs.converters (not needed at runtime) gives:

error: Module has no attribute "optional"

I think part of the problem is the __init__.pyi isn't synced with __init__.py for importing submodules. Not sure why the star import isn't working inside converters.py, though.

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