home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 629390609

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/pull/4064#issuecomment-629390609 https://api.github.com/repos/pydata/xarray/issues/4064 629390609 MDEyOklzc3VlQ29tbWVudDYyOTM5MDYwOQ== 56925856 2020-05-15T17:40:39Z 2020-05-15T17:41:25Z CONTRIBUTOR

@dcherian do you have any idea about this mypy Type error? I can't find much (accessible) documentation on how the Union[] is working in this context.

xarray/core/dataset.py:1737: error: Argument 2 to "fromkeys" of "dict" has incompatible type "Union[Number, Mapping[Hashable, Union[None, Number, Tuple[Number, ...]]]]"; expected "Union[None, Number, Tuple[Number, ...]]" xarray/core/dataset.py:1740: error: Item "Number" of "Union[Number, Mapping[Hashable, Union[None, Number, Tuple[Number, ...]]]]" has no attribute "keys"

Edit: thanks to everyone for your help so far!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  618828102
Powered by Datasette · Queries took 159.006ms · About: xarray-datasette