Skip to content

Commit 8796aea

Browse files
author
Danil Tolmachev
committed
reformat imports
1 parent 8bf4604 commit 8796aea

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

dictdatabase/indexing.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
import orjson
21
import os
2+
3+
import orjson
4+
35
from . import config
46

7+
58
# Problem: Multiple read processes will concurrently read and write the same file
69
# In some cases this will result in a empty read error, thats why the try-except exists
710

dictdatabase/io_unsafe.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
from __future__ import annotations
2-
from typing import Tuple
2+
3+
import hashlib
4+
import json
35
from dataclasses import dataclass
6+
from typing import Tuple
7+
48
import orjson
5-
import json
6-
import hashlib
7-
from . import config, utils, byte_codes, indexing, io_bytes
9+
10+
from . import byte_codes
11+
from . import config
12+
from . import indexing
13+
from . import io_bytes
14+
from . import utils
815
from .index_manager import IndexManager
916
from .searching import Searcher
1017

0 commit comments

Comments
 (0)