mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 19:17:16 +08:00
add (overwrite with) mypy stubs, if available
This commit is contained in:
11
stdlib/3/fnmatch.pyi
Normal file
11
stdlib/3/fnmatch.pyi
Normal file
@@ -0,0 +1,11 @@
|
||||
# Stubs for fnmatch
|
||||
|
||||
# Based on http://docs.python.org/3.2/library/fnmatch.html and
|
||||
# python-lib/fnmatch.py
|
||||
|
||||
from typing import Iterable, List, AnyStr
|
||||
|
||||
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: ...
|
||||
Reference in New Issue
Block a user