mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
add (overwrite with) mypy stubs, if available
This commit is contained in:
12
stdlib/3/functools.pyi
Normal file
12
stdlib/3/functools.pyi
Normal 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: ...
|
||||
Reference in New Issue
Block a user