issue_comments: 799648923
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/4904#issuecomment-799648923 | https://api.github.com/repos/pydata/xarray/issues/4904 | 799648923 | MDEyOklzc3VlQ29tbWVudDc5OTY0ODkyMw== | 32801740 | 2021-03-15T18:27:18Z | 2021-03-15T19:01:07Z | CONTRIBUTOR |
done
I have tried that but PyCharm would not handle the
If we remove that line, it incorrectly infers the result of
Agreed that this is surprising behaviour. I suspect mypy might have something like an implicit internal rule to fallback to the type of the first operand of a binary operator. That would be consistent with the behaviours of both of the above cases.
I can relate to that. On the other hand, there may also be a pragmatic reason to go the extra mile. If we don't it may result in users thinking xarray's newly added typing is to blame for unexpected type inferences and reporting issues here. When at some point in the future these tools indeed do catch up it is straightforward to adapt the script and regenerate. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
807764700 |