Skip to content

Commit 1c08df2

Browse files
authored
Add binaryornot stubs (#13920)
1 parent 9ab5974 commit 1c08df2

File tree

5 files changed

+16
-0
lines changed

5 files changed

+16
-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,5 @@
1+
from typing import Final
2+
3+
__author__: Final[str]
4+
__email__: Final[str]
5+
__version__: Final[str]
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from _typeshed import StrOrBytesPath
2+
3+
def is_binary(filename: StrOrBytesPath) -> bool: ...
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from _typeshed import StrOrBytesPath
2+
3+
def print_as_hex(s: str) -> None: ...
4+
def get_starting_chunk(filename: StrOrBytesPath, length: int = 1024) -> bytes: ...
5+
def is_binary_string(bytes_to_check: bytes | bytearray) -> bool: ...

0 commit comments

Comments
 (0)