home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where author_association = "CONTRIBUTOR", issue = 813246980 and user = 548266 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 1

  • jenshnielsen · 2 ✖

issue 1

  • Use definition of DTypeLike from Numpy if found · 2 ✖

author_association 1

  • CONTRIBUTOR · 2 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
784453434 https://github.com/pydata/xarray/pull/4941#issuecomment-784453434 https://api.github.com/repos/pydata/xarray/issues/4941 MDEyOklzc3VlQ29tbWVudDc4NDQ1MzQzNA== jenshnielsen 548266 2021-02-23T19:28:19Z 2021-02-23T19:28:19Z CONTRIBUTOR

Thanks @max-sixty @mathause

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Use definition of DTypeLike from Numpy if found 813246980
783987344 https://github.com/pydata/xarray/pull/4941#issuecomment-783987344 https://api.github.com/repos/pydata/xarray/issues/4941 MDEyOklzc3VlQ29tbWVudDc4Mzk4NzM0NA== jenshnielsen 548266 2021-02-23T07:59:46Z 2021-02-23T09:29:14Z CONTRIBUTOR

@max-sixty Thanks :)

IIUC the existing code may break type-checking, but the code will still run on numpy<1.20; please let me know if that's not the case.

Yes the existing code which is now the fallback could be considered wrong as it does not match the definitions that numpy ships. We could consider syncing that with numpy but that seems like more trouble than its worth since no one is likely to typecheck this against the definitions of numpy functions without running numpy 1.20 or newer.

The numpy definition is:

DTypeLike = Union[ np.dtype, # default data type (float64) None, # array-scalar types and generic types type, # TODO: enumerate these when we add type hints for numpy scalars # anything with a dtype attribute "_SupportsDType[np.dtype[Any]]", # character codes, type strings or comma-separated fields, e.g., 'float64' str, _VoidDTypeLike, ]

So one could add None and type but should probably omit the rest in order to not replicate too much of numpys internal type definitions

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Use definition of DTypeLike from Numpy if found 813246980

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 12.868ms · About: xarray-datasette