home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

6 rows where issue = 1376095009 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • Illviljan 3
  • headtr1ck 3

author_association 2

  • COLLABORATOR 3
  • MEMBER 3

issue 1

  • Self should be Any · 6 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1256562539 https://github.com/pydata/xarray/pull/7044#issuecomment-1256562539 https://api.github.com/repos/pydata/xarray/issues/7044 IC_kwDOAMm_X85K5Z9r Illviljan 14371165 2022-09-23T18:56:03Z 2022-09-23T18:56:40Z MEMBER

My idea was to live with Any since we'll be able to use it via typing_extensions once mypy starts supporting Self as well.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Self should be Any 1376095009
1256546302 https://github.com/pydata/xarray/pull/7044#issuecomment-1256546302 https://api.github.com/repos/pydata/xarray/issues/7044 IC_kwDOAMm_X85K5V_- headtr1ck 43316012 2022-09-23T18:38:58Z 2022-09-23T18:38:58Z COLLABORATOR

Ok, so then we have to either a) type self or b) live with return Any until minimum python version is 3.11?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Self should be Any 1376095009
1256541081 https://github.com/pydata/xarray/pull/7044#issuecomment-1256541081 https://api.github.com/repos/pydata/xarray/issues/7044 IC_kwDOAMm_X85K5UuZ Illviljan 14371165 2022-09-23T18:32:25Z 2022-09-23T18:34:16Z MEMBER

The intention in https://peps.python.org/pep-0673/ is to not need to type self. Which pyright handles correctly.

So this has to be valid: ```python if TYPE_CHECKING: from xarray.core.types import Self

class Foo: def returns_self(self) -> Self: return self ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Self should be Any 1376095009
1256379239 https://github.com/pydata/xarray/pull/7044#issuecomment-1256379239 https://api.github.com/repos/pydata/xarray/issues/7044 IC_kwDOAMm_X85K4tNn headtr1ck 43316012 2022-09-23T15:47:07Z 2022-09-23T15:47:07Z COLLABORATOR

Thinking about it a bit more... Not sure why you got such errors. Did you forget to annotate "self"? i.e. def func(self: Self, x: Any) -> Self

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Self should be Any 1376095009
1249510769 https://github.com/pydata/xarray/pull/7044#issuecomment-1249510769 https://api.github.com/repos/pydata/xarray/issues/7044 IC_kwDOAMm_X85KegVx headtr1ck 43316012 2022-09-16T15:34:08Z 2022-09-16T15:34:17Z COLLABORATOR

@headtr1ck TypeVar seems to restrict a little, because I got errors when using Self with facetgrids in #6778: C:\users\j.w\documents\github\xarray\xarray\plot\facetgrid.py:462: error: Incompatible return value type (got "FacetGrid", expected "Self")

Interesting. I'm ok with changing it back to Any for now :)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Self should be Any 1376095009
1249504258 https://github.com/pydata/xarray/pull/7044#issuecomment-1249504258 https://api.github.com/repos/pydata/xarray/issues/7044 IC_kwDOAMm_X85KeewC Illviljan 14371165 2022-09-16T15:27:43Z 2022-09-16T15:27:43Z MEMBER

@headtr1ck TypeVar seems to restrict a little, because I got errors when using Self with facetgrids in #6778: C:\users\j.w\documents\github\xarray\xarray\plot\facetgrid.py:462: error: Incompatible return value type (got "FacetGrid", expected "Self")

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Self should be Any 1376095009

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