home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where issue = 962647570 and user = 14371165 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date)

user 1

  • Illviljan · 5 ✖

issue 1

  • Add typing to the OPTIONS dict · 5 ✖

author_association 1

  • MEMBER 5
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
902430683 https://github.com/pydata/xarray/pull/5678#issuecomment-902430683 https://api.github.com/repos/pydata/xarray/issues/5678 IC_kwDOAMm_X841yf_b Illviljan 14371165 2021-08-20T04:57:29Z 2021-08-20T04:57:29Z MEMBER

Yes! Literal and TypeGuard seems like great ways of narrowing down types without using slow isinstance checks everywhere.

Some nice reading: https://adamj.eu/tech/2021/05/17/python-type-hints-how-to-narrow-types-with-isinstance-assert-literal/ https://adamj.eu/tech/2021/06/09/python-type-hints-how-to-narrow-types-with-typeguard/

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add typing to the OPTIONS dict 962647570
902014311 https://github.com/pydata/xarray/pull/5678#issuecomment-902014311 https://api.github.com/repos/pydata/xarray/issues/5678 IC_kwDOAMm_X841w6Vn Illviljan 14371165 2021-08-19T15:32:58Z 2021-08-19T15:32:58Z MEMBER

I think this is ready for review now.

The only thing missing now is a typing for positive-only ints. I haven't figured out how to do that though.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add typing to the OPTIONS dict 962647570
894540803 https://github.com/pydata/xarray/pull/5678#issuecomment-894540803 https://api.github.com/repos/pydata/xarray/issues/5678 IC_kwDOAMm_X841UZwD Illviljan 14371165 2021-08-06T22:03:32Z 2021-08-06T22:03:32Z MEMBER

I found TypedDict in typing_extensions as well. So now I think the mypy should behave the same for all python versions. It got quite messy because typing_extensions isnt a dependency of xarray, see #5495.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add typing to the OPTIONS dict 962647570
894483982 https://github.com/pydata/xarray/pull/5678#issuecomment-894483982 https://api.github.com/repos/pydata/xarray/issues/5678 IC_kwDOAMm_X841UL4O Illviljan 14371165 2021-08-06T19:50:12Z 2021-08-06T19:53:15Z MEMBER

@max-sixty is there a way turn off the typing, but still having T_Options defined? I think having no typing is better than adding typing in the 3.7 case. Maybe I should just wrap it inside the if check as well?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add typing to the OPTIONS dict 962647570
894434509 https://github.com/pydata/xarray/pull/5678#issuecomment-894434509 https://api.github.com/repos/pydata/xarray/issues/5678 IC_kwDOAMm_X841T_zN Illviljan 14371165 2021-08-06T18:15:37Z 2021-08-06T18:15:37Z MEMBER

I'm a little uncertain about the 3.7 solution and what happens once we start using these typings more (for example is sum(int, Any) ok?).

But we can drop 3.7 in december I think so maybe these typing inconsistencies is fine?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add typing to the OPTIONS dict 962647570

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 960.523ms · About: xarray-datasette