Skip to content

Incorrect type hinting in Sequence class #379

@wtclarke

Description

@wtclarke

The get_definition(self, key: str) -> str: function has a return type hint of str, however the set_definitions function accepts Union[float, int, list, np.ndarray, str, tuple] as a value. No casting is done, so get_definition should have the same return type Union[float, int, list, np.ndarray, str, tuple].

I'll open a PR to fix this when I have a chance.

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