Skip to content

Fix mypy issue #60

@BSchilperoort

Description

@BSchilperoort

Great. The mypy failure seems to be real, although unrelated to this PR. I reran the docs build which went through.

Something must have changed in a dependency. If I create a new environment from scratch, I can reproduce the error.

For some reason mypy things dy on this line is of type str | Unknown, because of the .item() call.

dy = obj.coords[lat_coord].diff(lat_coord).max().values.item()

Changing this to;

    dy: Any = obj.coords[lat_coord].diff(lat_coord).max().values.item() 

makes mypy happy again :/

Originally posted by @BSchilperoort in #59 (comment)

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