Skip to content

Commit 6b4abaa

Browse files
committed
added is_boot()
1 parent 55ecc7c commit 6b4abaa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tronapi/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import string
22

33

4+
def is_bool(x) -> bool:
5+
return isinstance(x, bool)
6+
7+
48
def is_numeric(x) -> bool:
59
return isinstance(x, int)
610

@@ -20,5 +24,3 @@ def is_hex(s):
2024

2125
def string_utf8_to_hex(name):
2226
return bytes(name, encoding='utf-8').hex()
23-
24-

0 commit comments

Comments
 (0)