Skip to content

Commit

Permalink
update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
rkingsbury committed May 14, 2024
1 parent a9a416f commit 1fc0e33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/maggma/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from typing import (
Any,
Callable,
Literal,
Optional,
Union,
get_args, # pragma: no cover
Expand All @@ -13,7 +14,6 @@
from pydantic import BaseModel
from pydantic._internal._utils import lenient_issubclass
from pydantic.fields import FieldInfo
from typing_extensions import Literal

from maggma.utils import get_flat_models_from_model

Expand Down
17 changes: 4 additions & 13 deletions src/maggma/stores/mongolike.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,10 @@
"""

import warnings
from collections.abc import Iterator
from itertools import chain, groupby
from pathlib import Path

from ruamel.yaml import YAML

from maggma.stores.ssh_tunnel import SSHTunnel

try:
from collections.abc import Iterator
from typing import Any, Callable, Literal, Optional, Union
except ImportError:
from collections.abc import Iterator
from typing import Any, Callable, Optional, Union

from typing_extensions import Literal
from typing import Any, Callable, Literal, Optional, Union

import bson
import mongomock
Expand All @@ -31,8 +20,10 @@
from pydash import get, has, set_
from pymongo import MongoClient, ReplaceOne, uri_parser
from pymongo.errors import ConfigurationError, DocumentTooLarge, OperationFailure
from ruamel.yaml import YAML

from maggma.core import Sort, Store, StoreError
from maggma.stores.ssh_tunnel import SSHTunnel
from maggma.utils import confirm_field_index, to_dt

try:
Expand Down

0 comments on commit 1fc0e33

Please sign in to comment.