add (overwrite with) mypy stubs, if available

This commit is contained in:
Matthias Kramm
2015-09-30 07:36:12 -07:00
parent 69e10b3aed
commit 337abed05a
432 changed files with 22360 additions and 776 deletions

12
stdlib/3/functools.pyi Normal file
View File

@@ -0,0 +1,12 @@
# Stubs for functools
# NOTE: These are incomplete!
from typing import Callable, Any, Optional
# TODO implement as class; more precise typing
# TODO cache_info and __wrapped__ attributes
def lru_cache(maxsize: Optional[int] = 100) -> Callable[[Any], Any]: ...
# TODO more precise typing?
def wraps(func: Any) -> Any: ...