Skip to content

Consider making BaseDescriptor generic with respect to the host class. #217

@rwb27

Description

@rwb27

Currently, BaseDescriptor is typed assuming the owning class is a Thing. This means we can't type things quite as precisely as I'd like, for example in ActionDescriptor.

It would be nice to investigate adding another parameter to BaseDescriptor so that it can use a more specific type for the owning object. This wouldn't change the public API, but might be slightly neater and get rid of a #type: ignore or two.

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