home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1311932036

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/issues/7258#issuecomment-1311932036 https://api.github.com/repos/pydata/xarray/issues/7258 1311932036 IC_kwDOAMm_X85OMn6E 43316012 2022-11-11T16:41:10Z 2022-11-11T16:41:10Z COLLABORATOR

The problem is that a dict is invariant in it's keys so your variable is a dict[str, Any] but the function was typed as dict[Hashable, Any]. Now the problem is that a dict is mutable and the function could modify the dict, but it might write non-str keys, which you might not expect.

Why it does not work with a Mapping that in principle is read-only, I don't know.

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