Skip to content

Runtime cast failed on __geo_interface__ input #424

@kylebarron

Description

@kylebarron

This line appears to be failing:

data = cast(GeoInterfaceProtocol, data)

GeoInterfaceProtocol is only defined when TYPE_CHECKING is defined, so maybe we should only cast within an if TYPE_CHECKING block?

We should add a test for this with a shapely geom too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions