home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1256931771

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/pull/7052#issuecomment-1256931771 https://api.github.com/repos/pydata/xarray/issues/7052 1256931771 IC_kwDOAMm_X85K60G7 43316012 2022-09-24T10:16:10Z 2022-09-24T10:21:05Z COLLABORATOR

Ok found another interesting problem: the e.g. functools.wraps(imshow) in the PlotAccessor works because in the moment it is called, there is no class method named "imshow", so it will use the module method, which is exactly what we want. However, as soon as one adds overloads, there indeed is a "imshow" class method (just the overload wrapper) and it tries to wrap this instead, which goes wrong (so the overload shadows the module method that we want)...

Does anyone know how we can force it to use the module imshow instead of the overload wrapper? The only thing I can think of is to move the Accessor to its own module, which might actually not be a bad idea?

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