home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1111813044

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/6524#issuecomment-1111813044 https://api.github.com/repos/pydata/xarray/issues/6524 1111813044 IC_kwDOAMm_X85CROu0 1217238 2022-04-28T06:52:04Z 2022-04-28T06:52:04Z MEMBER

I think this would need to get updated on the NumPy side. Ideally NumPy ufuncs would be typed to check for __array_ufunc__. Something like: ```python from typing import Protocol, TypeVar

class HasArrayUFunc(Protocol): def array_ufunc(ufunc, method, inputs, *kwargs): pass

ArrayOrHasArrayUFunc = TypeVar("ArrayOrHasArrayUFunc", ndarray, HasArrayUFunc)

def exp(x: ArrayOrHasArrayUFunc) -> ArrayOrHasArrayUFunc: ... ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1217425815
Powered by Datasette · Queries took 1.125ms · About: xarray-datasette