issues: 1931329996
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1931329996 | PR_kwDOAMm_X85cK3Or | 8281 | Add high level from_array function in namedarray | 14371165 | closed | 0 | 1 | 2023-10-07T12:19:23Z | 2023-10-10T17:10:37Z | 2023-10-10T17:10:37Z | MEMBER | 1 | pydata/xarray/pulls/8281 | The Idea is to avoid as much normalization in the NamedArray class as possible. Different types are handled before initializing instead.
References: https://github.com/tomwhite/cubed/blob/ea885193dd37d27917a24878b51bb086aaef5fb1/cubed/core/ops.py#L34 https://stackoverflow.com/questions/74633074/how-to-type-hint-a-generic-numpy-array https://numpy.org/doc/stable/reference/arrays.scalars.html#scalars https://github.com/numpy/numpy/blob/040ed2dc9847265c581a342301dd87d2b518a3c2/numpy/init.pyi#L1423 https://github.com/numpy/numpy/blob/040ed2dc9847265c581a342301dd87d2b518a3c2/numpy/_typing/_array_like.py#L32 Mypy issues: https://github.com/python/typing/issues/548 |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/8281/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | pull |