home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 965939431 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 3

  • max-sixty 2
  • shoyer 1
  • github-actions[bot] 1

author_association 2

  • MEMBER 3
  • CONTRIBUTOR 1

issue 1

  • Change annotations to allow str keys · 4 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
896515958 https://github.com/pydata/xarray/pull/5690#issuecomment-896515958 https://api.github.com/repos/pydata/xarray/issues/5690 IC_kwDOAMm_X841b792 github-actions[bot] 41898282 2021-08-11T05:39:18Z 2021-08-19T17:55:49Z CONTRIBUTOR

Unit Test Results

6 files  ±0           6 suites  ±0   53m 7s :stopwatch: ±0s 16 218 tests ±0  14 482 :heavy_check_mark: ±0  1 735 :zzz: ±0  1 :x: ±0  90 504 runs  ±0  82 323 :heavy_check_mark: ±0  8 175 :zzz: ±0  6 :x: ±0 

For more details on these failures, see this check.

Results for commit 378b9020. ± Comparison against base commit 378b9020.

:recycle: This comment has been updated with latest results.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Change annotations to allow str keys 965939431
898142259 https://github.com/pydata/xarray/pull/5690#issuecomment-898142259 https://api.github.com/repos/pydata/xarray/issues/5690 IC_kwDOAMm_X841iJAz max-sixty 5635139 2021-08-13T02:51:59Z 2021-08-13T02:51:59Z MEMBER

I would suggest that new tests use -> None: so mypy checks them, and we build up some tests for our typing through that — any thoughts?

I'm not opposed to suggesting -> None for tests, but I would hesitate to require it:

* It's not unusual for tests to be incompatible with type checking, e.g., because they are checking invalid input, or rely on tricks like mocks.

* It's also a fair amount of boilerplate to add to code that already has a lot of boilerplate (for things like parametrized tests & fixtures), so readability could suffer.

Suggesting is fine.

I might vote to strongly suggest — it does worry me that a bunch of our type annotations are wrong and we don't have a mechanism to assess that.

But for sure if someone is using mocks etc, then no need. And I'm not suggesting everything (e.g. fixtures) needs to be annotated — adding -> None: will let mypy test the types it already knows about.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Change annotations to allow str keys 965939431
897396180 https://github.com/pydata/xarray/pull/5690#issuecomment-897396180 https://api.github.com/repos/pydata/xarray/issues/5690 IC_kwDOAMm_X841fS3U shoyer 1217238 2021-08-12T06:57:56Z 2021-08-12T06:57:56Z MEMBER

I would suggest that new tests use -> None: so mypy checks them, and we build up some tests for our typing through that — any thoughts?

I'm not opposed to suggesting -> None for tests, but I would hesitate to require it: - It's not unusual for tests to be incompatible with type checking, e.g., because they are checking invalid input, or rely on tricks like mocks. - It's also a fair amount of boilerplate to add to code that already has a lot of boilerplate (for things like parametrized tests & fixtures), so readability could suffer.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Change annotations to allow str keys 965939431
897280353 https://github.com/pydata/xarray/pull/5690#issuecomment-897280353 https://api.github.com/repos/pydata/xarray/issues/5690 IC_kwDOAMm_X841e2lh max-sixty 5635139 2021-08-12T01:41:28Z 2021-08-12T01:41:28Z MEMBER

Unfortunately most test files fail mypy when their tests are changed to -> None — which enables mypy. This is mostly because they reuse variables for different types, though on occasion because our typing isn't quite correct.

I would suggest that new tests use -> None: so mypy checks them, and we build up some tests for our typing through that — any thoughts?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Change annotations to allow str keys 965939431

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