diff --git a/stdlib/@tests/stubtest_allowlists/py314.txt b/stdlib/@tests/stubtest_allowlists/py314.txt index 055cae41b..f94c84c1c 100644 --- a/stdlib/@tests/stubtest_allowlists/py314.txt +++ b/stdlib/@tests/stubtest_allowlists/py314.txt @@ -67,8 +67,6 @@ enum.Enum.__signature__ enum.EnumMeta.__signature__ enum.EnumType.__signature__ faulthandler.dump_c_stack -fnmatch.__all__ -fnmatch.filterfalse fractions.Fraction.__pow__ fractions.Fraction.__rpow__ fractions.Fraction.from_number diff --git a/stdlib/fnmatch.pyi b/stdlib/fnmatch.pyi index 7051c999c..345c45764 100644 --- a/stdlib/fnmatch.pyi +++ b/stdlib/fnmatch.pyi @@ -1,9 +1,15 @@ +import sys from collections.abc import Iterable from typing import AnyStr __all__ = ["filter", "fnmatch", "fnmatchcase", "translate"] +if sys.version_info >= (3, 14): + __all__ += ["filterfalse"] def fnmatch(name: AnyStr, pat: AnyStr) -> bool: ... def fnmatchcase(name: AnyStr, pat: AnyStr) -> bool: ... def filter(names: Iterable[AnyStr], pat: AnyStr) -> list[AnyStr]: ... def translate(pat: str) -> str: ... + +if sys.version_info >= (3, 14): + def filterfalse(names: Iterable[AnyStr], pat: AnyStr) -> list[AnyStr]: ...