diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index 225388cc9..4694042ca 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -493,7 +493,7 @@ class bytes(ByteString): def upper(self) -> bytes: ... def zfill(self, __width: SupportsIndex) -> bytes: ... @classmethod - def fromhex(cls, __s: str) -> bytes: ... + def fromhex(cls: Type[_T], __s: str) -> _T: ... @staticmethod def maketrans(__frm: bytes, __to: bytes) -> bytes: ... def __len__(self) -> int: ...