Mark first argument of __[get|set|del]attr__ as str (#9245)

This commit is contained in:
Nikita Sobolev
2022-11-22 14:06:50 +03:00
committed by GitHub
parent 3026610797
commit 18e2ae762b
53 changed files with 106 additions and 106 deletions

View File

@@ -3,8 +3,8 @@ from typing import Any
class _PasslibRegistryProxy:
__name__: str
__package__: Any
def __getattr__(self, attr): ...
def __setattr__(self, attr, value) -> None: ...
def __getattr__(self, attr: str): ...
def __setattr__(self, attr: str, value) -> None: ...
def __dir__(self): ...
def register_crypt_handler_path(name, path) -> None: ...

View File

@@ -43,7 +43,7 @@ class Base64Engine:
class LazyBase64Engine(Base64Engine):
def __init__(self, *args, **kwds) -> None: ...
def __getattribute__(self, attr): ...
def __getattribute__(self, attr: str): ...
h64: Any
h64big: Any

View File

@@ -159,8 +159,8 @@ class PrefixWrapper:
@property
def ident_values(self): ...
def __dir__(self): ...
def __getattr__(self, attr): ...
def __setattr__(self, attr, value) -> None: ...
def __getattr__(self, attr: str): ...
def __setattr__(self, attr: str, value) -> None: ...
def using(self, **kwds): ...
def needs_update(self, hash, **kwds): ...
def identify(self, hash): ...