(package: Package)
return []
Return an iterable of entries in 'package'.

    Note that not all entries are resources.  Specifically, directories are
    not considered resources.  Use `is_resource()` on each entry returned here
    to check if it is a resource or not.
Return an iterable of entries in 'package'.
Return an iterable of entries in package .
def contents(package: Package) -> Iterable[str]:
    """Return an iterable of entries in 'package'.

    Note that not all entries are resources.  Specifically, directories are
    not considered resources.  Use `is_resource()` on each entry returned here
    to check if it is a resource or not.
    """
    package = _common.get_package(package)
    reader = _common.get_resource_reader(package)
    if reader is not None:
        return _ensure_sequence(reader.contents())
    transversable = _common.from_package(package)
    if transversable.is_dir():
        return list(item.name for item in transversable.iterdir())
    return []
def contents ( package : Package ) -> Iterable [ str ] : package = _common . get_package ( package ) reader = _common . get_resource_reader ( package ) if reader is not None : return _ensure_sequence ( reader . contents ( ) ) transversable = _common . from_package ( package ) if transversable . is_dir ( ) : return list ( item . name for item in transversable . iterdir ( ) ) return [ ]