Skip to content

Commit 4d80f32

Browse files
author
Danil Tolmachev
committed
fix type hinting
1 parent 8796aea commit 4d80f32

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

dictdatabase/searching.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
from typing import Tuple
2+
13
from dictdatabase import byte_codes
24
from dictdatabase import utils
35

46

57
class Searcher:
68
@staticmethod
7-
def find_start_end_in_bytes(file: bytes, key: str) -> tuple[int, int, bool]:
9+
def find_start_end_in_bytes(file: bytes, key: str) -> Tuple[int, int, bool]:
810
"""
911
It finds the start and end indices of the value of a key in a JSON file
1012
@@ -24,7 +26,7 @@ def find_start_end_in_bytes(file: bytes, key: str) -> tuple[int, int, bool]:
2426

2527
def search(
2628
self, all_file_bytes: bytes, key: str, glom_searching=True
27-
) -> tuple[int, int, bool]:
29+
) -> Tuple[int, int, bool]:
2830
"""
2931
It takes a byte string, a key, and a boolean, and returns a tuple of three integers
3032

0 commit comments

Comments
 (0)