Fix import sorting in falkordb_driver.py (follow-up to #910)
Sort imports alphabetically and move local imports before TYPE_CHECKING conditional imports to fix ruff lint error I001.
This commit is contained in:
parent
d0a3cd97ae
commit
33e5b44986
1 changed files with 4 additions and 4 deletions
|
|
@ -14,11 +14,14 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import datetime
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
from typing import TYPE_CHECKING, Any
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
|
from graphiti_core.driver.driver import GraphDriver, GraphDriverSession, GraphProvider
|
||||||
|
from graphiti_core.utils.datetime_utils import convert_datetimes_to_strings
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from falkordb import Graph as FalkorGraph
|
from falkordb import Graph as FalkorGraph
|
||||||
from falkordb.asyncio import FalkorDB
|
from falkordb.asyncio import FalkorDB
|
||||||
|
|
@ -33,9 +36,6 @@ else:
|
||||||
'Install it with: pip install graphiti-core[falkordb]'
|
'Install it with: pip install graphiti-core[falkordb]'
|
||||||
) from None
|
) from None
|
||||||
|
|
||||||
from graphiti_core.driver.driver import GraphDriver, GraphDriverSession, GraphProvider
|
|
||||||
from graphiti_core.utils.datetime_utils import convert_datetimes_to_strings
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
STOPWORDS = [
|
STOPWORDS = [
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue