mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-23 04:11:28 +08:00
Replaced parameter name "self" with "cls" for a few class methods (#4393)
* Replaced parameter name "self" with "cls" for a few class methods. Pyright emits a warning if a class method doesn't follow the PEP 8 standard where the first parameter is named "cls" for a class method. This change eliminates these warnings. * Missed a file. Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
@@ -6,5 +6,5 @@ _T = TypeVar("_T")
|
||||
def get_cache_token() -> object: ...
|
||||
|
||||
class ABCMeta(type):
|
||||
def __new__(mcls, __name: str, __bases: Tuple[Type[Any], ...], __namespace: Dict[str, Any]) -> ABCMeta: ...
|
||||
def __new__(cls, __name: str, __bases: Tuple[Type[Any], ...], __namespace: Dict[str, Any]) -> ABCMeta: ...
|
||||
def register(cls, subclass: Type[_T]) -> Type[_T]: ...
|
||||
|
||||
Reference in New Issue
Block a user