| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Diff from mypy_primer, showing the effect of this PR on open source code: core (https://github.com/home-assistant/core.git)
- homeassistant/helpers/device_registry.py:597: error: Unsupported operand types for - ("Set[str]" and "Set[Optional[str]]") [operator]
|
Sorry, something went wrong.
|
Hm, mypy thinks the overloads are unsafe, I will now try to tweak or ignore to make the build clean. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM, apart from the build failure.
Sorry, something went wrong.
|
Diff from mypy_primer, showing the effect of this PR on open source code: core (https://github.com/home-assistant/core.git)
- homeassistant/helpers/device_registry.py:597: error: Unsupported operand types for - ("Set[str]" and "Set[Optional[str]]") [operator]
|
Sorry, something went wrong.
|
For posterity / to keep things linked, set difference was strict-ified in #3886 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
In this diff:
About the first item, I think mypy should support the overloads on generic self-types (see https://mypy.readthedocs.io/en/stable/more_types.html#restricted-methods-in-generic-classes), but I am not sure about other type-checkers.
cc @JukkaL