GenericMappingTools / pygmt

A Python interface for the Generic Mapping Tools.
https://www.pygmt.org
BSD 3-Clause "New" or "Revised" License
763 stars 219 forks source link

Fix the typing hints for grd2xyz #3560

Closed seisman closed 2 weeks ago

seisman commented 2 weeks ago

grid.dims is a sequence of Hashable, but we expect column_names to be a list of strings.

pygmt/src/grd2xyz.py:156: error: List item 0 has incompatible type "Hashable"; expected "str"  [list-item]
pygmt/src/grd2xyz.py:156: error: List item 1 has incompatible type "Hashable"; expected "str"  [list-item]
pygmt/src/grd2xyz.py:156: error: List item 2 has incompatible type "Hashable"; expected "str"  [list-item]