Skip to content

Commit ec07240

Browse files
committed
Add binaryornot stubs
1 parent a46eea7 commit ec07240

File tree

5 files changed

+14
-0
lines changed

5 files changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
binaryornot\..+?\.logger

stubs/binaryornot/METADATA.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
version = "0.4.*"
2+
upstream_repository = "https://github.com/binaryornot/binaryornot"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__email__: str = ...
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import os
2+
from typing import Any
3+
4+
def is_binary(filename: os.PathLike[Any] | bytes | str) -> bool: ...
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import os
2+
from typing import Any
3+
4+
def print_as_hex(s: str) -> None: ...
5+
def get_starting_chunk(filename: os.PathLike[Any] | bytes | str, length: int = 1024) -> bytes: ...
6+
def is_binary_string(bytes_to_check: bytes | bytearray) -> bool: ...

0 commit comments

Comments
 (0)