pylint/plugins/hass_enforce_type_hints.py
def visit_module(self, node: nodes.Module) -> None:
        """Called when a Module node is visited."""
        self._function_matchers = []
        self._class_matchers = []

        if (module_platform := _get_module_platform(node.name)) is None:
            return

        if module_platform in _PLATFORMS:
            self._function_matchers.extend(_FUNCTION_MATCH["__any_platform__"])

        if function_matches := _FUNCTION_MATCH.get(module_platform):
            self._function_matchers.extend(function_matches)

        if class_matches := _CLASS_MATCH.get(module_platform):
            self._class_matchers = class_matches
Called when a Module node is visited.
Called when a Module node is visited.
Called when a Module node is visited .
def visit_module(self, node: nodes.Module) -> None:
        self._function_matchers = []
        self._class_matchers = []
        if (module_platform := _get_module_platform(node.name)) is None:
            return
        if module_platform in _PLATFORMS:
            self._function_matchers.extend(_FUNCTION_MATCH["__any_platform__"])
        if function_matches := _FUNCTION_MATCH.get(module_platform):
            self._function_matchers.extend(function_matches)
        if class_matches := _CLASS_MATCH.get(module_platform):
            self._class_matchers = class_matches
def visit_module ( self , node : nodes . Module ) -> None : self . _function_matchers = [ ] self . _class_matchers = [ ] if ( module_platform := _get_module_platform ( node . name ) ) is None : return if module_platform in _PLATFORMS : self . _function_matchers . extend ( _FUNCTION_MATCH [ "__any_platform__" ] ) if function_matches := _FUNCTION_MATCH . get ( module_platform ) : self . _function_matchers . extend ( function_matches ) if class_matches := _CLASS_MATCH . get ( module_platform ) : self . _class_matchers = class_matches
Called when a Module node is visited.
Called when a Module node is visited .
"""Called when a Module node is visited."""
self
node
nodes.Module