From 97ce20034352caff50d818e4b32cc28338a08d19 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Thu, 12 Sep 2024 11:11:59 +0200 Subject: [PATCH] [pyasn1] Remove items removed from 0.6.1 (#12646) --- stubs/pyasn1/pyasn1/compat/integer.pyi | 9 +-------- stubs/pyasn1/pyasn1/compat/octets.pyi | 18 ------------------ 2 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 stubs/pyasn1/pyasn1/compat/octets.pyi 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