def METHOD_NAME(self) -> List[Dict[str, Any]]:
    """locally installed packages, lazy execution"""
    if self._local_packages is None:
        self._updateLocalPackages()
        # _updateLocalPackages always results in a list of packages, not None.
        # It's guaranteed to be a list now.
    return cast(List[Dict[str, Any]], self._local_packages)