mark some positional-only arguments (#4693)

https://github.com/python/mypy/pull/9626 will make stubtest a little bit
stricter about positional-only arguments for dunders like __init__

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-10-22 04:31:23 -07:00
committed by GitHub
parent dcbeed5b5a
commit faf827bc36
6 changed files with 7 additions and 7 deletions

View File

@@ -6,5 +6,5 @@ _T = TypeVar("_T")
def get_cache_token() -> object: ...
class ABCMeta(type):
def __new__(cls, __name: str, __bases: Tuple[Type[Any], ...], __namespace: Dict[str, Any]) -> ABCMeta: ...
def __new__(__mcls, __name: str, __bases: Tuple[Type[Any], ...], __namespace: Dict[str, Any]) -> ABCMeta: ...
def register(cls, subclass: Type[_T]) -> Type[_T]: ...