mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-07 22:10:10 +08:00
Add binaryornot stubs (#13920)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
binaryornot\..+?\.logger
|
||||
@@ -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]
|
||||
@@ -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: ...
|
||||
Reference in New Issue
Block a user