Add binaryornot stubs (#13920)

This commit is contained in:
Tatsh
2025-05-06 02:36:34 -04:00
committed by GitHub
parent 9ab597426c
commit 1c08df207b
5 changed files with 16 additions and 0 deletions
@@ -0,0 +1 @@
binaryornot\..+?\.logger
+2
View File
@@ -0,0 +1,2 @@
version = "0.4.*"
upstream_repository = "https://github.com/binaryornot/binaryornot"
@@ -0,0 +1,5 @@
from typing import Final
__author__: Final[str]
__email__: Final[str]
__version__: Final[str]
+3
View File
@@ -0,0 +1,3 @@
from _typeshed import StrOrBytesPath
def is_binary(filename: StrOrBytesPath) -> bool: ...
@@ -0,0 +1,5 @@
from _typeshed import StrOrBytesPath
def print_as_hex(s: str) -> None: ...
def get_starting_chunk(filename: StrOrBytesPath, length: int = 1024) -> bytes: ...
def is_binary_string(bytes_to_check: bytes | bytearray) -> bool: ...