diff --git a/pylint/plugins/hass_enforce_type_hints.py b/pylint/plugins/hass_enforce_type_hints.py index 0581569c2d6..4fb471e2145 100644 --- a/pylint/plugins/hass_enforce_type_hints.py +++ b/pylint/plugins/hass_enforce_type_hints.py @@ -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() diff --git a/tests/pylint/test_enforce_type_hints.py b/tests/pylint/test_enforce_type_hints.py index 9e8df452b61..b80d8f01445 100644 --- a/tests/pylint/test_enforce_type_hints.py +++ b/tests/pylint/test_enforce_type_hints.py @@ -574,7 +574,7 @@ def test_ignore_invalid_entity_properties( async def async_lock( self, **kwargs - ) -> bool: + ): pass """, "homeassistant.components.pylint_test.lock",