home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1007729786

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/6142#issuecomment-1007729786 https://api.github.com/repos/pydata/xarray/issues/6142 1007729786 IC_kwDOAMm_X848ELx6 35968931 2022-01-07T20:46:40Z 2022-01-07T20:46:40Z MEMBER

We need to be careful typing functions where only one dim is allowed, e.g. xr.concat, which should probably set dim: Hashable (and make sure it works).

Sorry, I don't understand this - if I want to type hint concat so that no-one can pass more than one dim, isn't my only option to type hint it as str? Because if I type hint it as Hashable they could pass ("x", "y"), which is two dims? Maybe I'm not following properly...

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