diff --git a/stubs/pyasn1/pyasn1/compat/integer.pyi b/stubs/pyasn1/pyasn1/compat/integer.pyi index 334f28467..ecc0e4208 100644 --- a/stubs/pyasn1/pyasn1/compat/integer.pyi +++ b/stubs/pyasn1/pyasn1/compat/integer.pyi @@ -1,8 +1 @@ -from typing import Literal - -implementation: str -null: Literal[b""] - -def from_bytes(octets, signed: bool = False): ... -def to_bytes(value, signed: bool = False, length: int = 0): ... -def bitLength(number): ... +def to_bytes(value: int, signed: bool = False, length: int = 0) -> bytes: ... diff --git a/stubs/pyasn1/pyasn1/compat/octets.pyi b/stubs/pyasn1/pyasn1/compat/octets.pyi deleted file mode 100644 index 162d786b1..000000000 --- a/stubs/pyasn1/pyasn1/compat/octets.pyi +++ /dev/null @@ -1,18 +0,0 @@ -from typing import Literal, TypeVar - -_T = TypeVar("_T") - -ints2octs = bytes - -def int2oct(x) -> bytes: ... - -null: Literal[b""] - -def oct2int(x: _T) -> _T: ... -def octs2ints(x: _T) -> _T: ... -def str2octs(x: str) -> bytes: ... -def octs2str(x: bytes) -> str: ... -def isOctetsType(s: object) -> bool: ... -def isStringType(s: object) -> bool: ... - -ensureString = bytes