issue_comments
2 rows where issue = 948890466 and user = 5635139 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- Make typing-extensions optional · 2 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
884652940 | https://github.com/pydata/xarray/pull/5624#issuecomment-884652940 | https://api.github.com/repos/pydata/xarray/issues/5624 | IC_kwDOAMm_X840uruM | max-sixty 5635139 | 2021-07-22T04:45:23Z | 2021-07-22T04:45:23Z | MEMBER | It's not pretty, but this seems to work, on top of the most recent commit 2191fbc: ```diff diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 232dbec3..3b490dcc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,6 +43,7 @@ repos: types-pytz, # Dependencies that are typed numpy, + typing-extensions==3.10.0.0, ] # run this occasionally, ref discussion https://github.com/pydata/xarray/pull/3194 # - repo: https://github.com/asottile/pyupgrade diff --git a/xarray/core/utils.py b/xarray/core/utils.py index 1f2dfb5c..a139d2ef 100644 --- a/xarray/core/utils.py +++ b/xarray/core/utils.py @@ -10,6 +10,7 @@ import warnings from enum import Enum from typing import ( + TYPE_CHECKING, Any, Callable, Collection, @@ -32,7 +33,6 @@ import numpy as np import pandas as pd - K = TypeVar("K") V = TypeVar("V") T = TypeVar("T") @@ -307,19 +307,29 @@ def _is_scalar(value, include_0d): ) +# See GH5624, this is a convoluted way to allow type-checking to use
``` It works with or without the edit to @shoyer want me to add it on and merge? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Make typing-extensions optional 948890466 | |
883604872 | https://github.com/pydata/xarray/pull/5624#issuecomment-883604872 | https://api.github.com/repos/pydata/xarray/issues/5624 | IC_kwDOAMm_X840qr2I | max-sixty 5635139 | 2021-07-20T18:28:54Z | 2021-07-20T18:29:48Z | MEMBER | Sorry to be late to the party here — I've been less in the flow of xarray for the past week. How strongly do you feel about not having this as a dependency @shoyer ? I hadn't thought of it as controversial given it's a "official" python package, but without much confidence so happy to defer. A few options:
- Revert TypeGuard (when would we add it back — when If we can get a good error message, I would vote for requiring it for type-checking. If it silently swallows the error and doesn't type check, then I'd probably vote for reverting TypeGuard or making |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Make typing-extensions optional 948890466 |
Advanced export
JSON shape: default, array, newline-delimited, object
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]);
user 1