filter method
filter
python docstring
Takes an iterable of items and filters them so that only items which are contained within this specifier are allowed in it.
python source
@abc.abstractmethod
def filter(
self, iterable: Iterable[UnparsedVersionVar], prereleases: Optional[bool] = None
) -> Iterator[UnparsedVersionVar]:
"""
Takes an iterable of items and filters them so that only items which
are contained within this specifier are allowed in it.
"""
Implementation
Iterator<Object?> filter({
required Iterable<Object?> iterable,
Object? prereleases,
}) =>
TypedIterator.from(
PythonIterator.from<Object?, PythonFfiDelegate<Object?>, Object?>(
getFunction("filter").call(
<Object?>[
iterable,
prereleases,
],
kwargs: <String, Object?>{},
),
),
).transform((e) => e).cast<Object?>();