mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 20:45:49 +08:00
Bump fnmatch to 3.14 (#14046)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user