home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 1046458609

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
1046458609 I_kwDOAMm_X84-X7Dx 5945 Start using `|` instead of `Union` or `Optional` when typing 14371165 closed 0     1 2021-11-06T08:12:57Z 2022-06-04T04:26:03Z 2022-06-04T04:26:03Z MEMBER      

Is your feature request related to a problem? Please describe. To make it easier reading the typing it is now possible to use | instead of Union or Optional.

Here's an example how it looks like in pandas: https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/_core.py#L116-L134

Describe the solution you'd like Replace for example: * Union[str, int] with str | int * Optional[str] with None | str

This would likely require adding from __future__ import annotations at the top of the file.

References https://www.python.org/dev/peps/pep-0604/

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/5945/reactions",
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 1 row from issues_id in issues_labels
  • 1 row from issue in issue_comments
Powered by Datasette · Queries took 0.59ms · About: xarray-datasette