diff --git a/stdlib/2/__builtin__.pyi b/stdlib/2/__builtin__.pyi index f9e61af2b..0df170be1 100644 --- a/stdlib/2/__builtin__.pyi +++ b/stdlib/2/__builtin__.pyi @@ -224,7 +224,7 @@ class float: def hex(self) -> str: ... def is_integer(self) -> bool: ... @classmethod - def fromhex(cls, s: str) -> float: ... + def fromhex(cls, __s: str) -> float: ... @property def real(self) -> float: ... @@ -616,7 +616,7 @@ if sys.version_info >= (3,): def upper(self) -> bytes: ... def zfill(self, __width: int) -> bytes: ... @classmethod - def fromhex(cls, s: str) -> bytes: ... + def fromhex(cls, __s: str) -> bytes: ... @classmethod def maketrans(cls, frm: bytes, to: bytes) -> bytes: ... @@ -736,8 +736,8 @@ class bytearray(MutableSequence[int], ByteString): def translate(self, __table: str) -> bytearray: ... def upper(self) -> bytearray: ... def zfill(self, __width: int) -> bytearray: ... - @staticmethod - def fromhex(__string: str) -> bytearray: ... + @classmethod + def fromhex(cls, __string: str) -> bytearray: ... if sys.version_info >= (3,): @classmethod def maketrans(cls, __frm: bytes, __to: bytes) -> bytes: ... diff --git a/stdlib/2and3/builtins.pyi b/stdlib/2and3/builtins.pyi index f9e61af2b..0df170be1 100644 --- a/stdlib/2and3/builtins.pyi +++ b/stdlib/2and3/builtins.pyi @@ -224,7 +224,7 @@ class float: def hex(self) -> str: ... def is_integer(self) -> bool: ... @classmethod - def fromhex(cls, s: str) -> float: ... + def fromhex(cls, __s: str) -> float: ... @property def real(self) -> float: ... @@ -616,7 +616,7 @@ if sys.version_info >= (3,): def upper(self) -> bytes: ... def zfill(self, __width: int) -> bytes: ... @classmethod - def fromhex(cls, s: str) -> bytes: ... + def fromhex(cls, __s: str) -> bytes: ... @classmethod def maketrans(cls, frm: bytes, to: bytes) -> bytes: ... @@ -736,8 +736,8 @@ class bytearray(MutableSequence[int], ByteString): def translate(self, __table: str) -> bytearray: ... def upper(self) -> bytearray: ... def zfill(self, __width: int) -> bytearray: ... - @staticmethod - def fromhex(__string: str) -> bytearray: ... + @classmethod + def fromhex(cls, __string: str) -> bytearray: ... if sys.version_info >= (3,): @classmethod def maketrans(cls, __frm: bytes, __to: bytes) -> bytes: ...