mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
Remove incorrect ignore in pylint plugin (#90024)
* Remove incorrect ignore_missing_annotations * Allow tuple[int, int] in hs_color * Adjust notify targets * Always check for return type inheritance * Adjust tests * Revert "Always check for return type inheritance" This reverts commit 3528742adf98edc6481f2c954c032ace881e1d6e. * Revert "Allow tuple[int, int] in hs_color" This reverts commit d51c1731eff3d59b9e94e7a7e914933ceaf8e34f. * Revert "Adjust notify targets" This reverts commit 4cba77a7309dc89980e29d6d5b9107d9e55f7070.
This commit is contained in:
parent
53de9dcdbc
commit
c193402ba7
@ -2974,9 +2974,7 @@ class HassTypeHintChecker(BaseChecker): # type: ignore[misc]
|
||||
if class_matches := _CLASS_MATCH.get(module_platform):
|
||||
self._class_matchers.extend(class_matches)
|
||||
|
||||
if not self.linter.config.ignore_missing_annotations and (
|
||||
property_matches := _INHERITANCE_MATCH.get(module_platform)
|
||||
):
|
||||
if property_matches := _INHERITANCE_MATCH.get(module_platform):
|
||||
self._class_matchers.extend(property_matches)
|
||||
|
||||
self._class_matchers.reverse()
|
||||
|
@ -574,7 +574,7 @@ def test_ignore_invalid_entity_properties(
|
||||
async def async_lock(
|
||||
self,
|
||||
**kwargs
|
||||
) -> bool:
|
||||
):
|
||||
pass
|
||||
""",
|
||||
"homeassistant.components.pylint_test.lock",
|
||||
|
Loading…
x
Reference in New Issue
Block a user