# Imports have moved to `propcache.api` in 0.2.0+. # This module is now a facade for the API. if TYPE_CHECKING: from .api import cached_property as cached_property # noqa: F401 from .api import under_cached_property as under_cached_property # noqa: F401
def _import_facade(attr: str) -> object: """Import the public API from the `api` module.""" if attr in _PUBLIC_API: from . import api # pylint: disable=import-outside-toplevel
return getattr(api, attr) raise AttributeError(f"module '{__package__}' has no attribute '{attr}'")
def _dir_facade() -> List[str]: """Include the public API in the module's dir() output.""" return [*_PUBLIC_API, *globals().keys()]
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.