Skip to content

Commit

Permalink
Update abstract_repository.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Artucuno committed Jan 28, 2024
1 parent 62de696 commit f0aafcc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pydantic_mongo/abstract_repository.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import asyncio
from typing import (
Any,
Dict,
Expand All @@ -10,29 +11,25 @@
TypeVar,
Union,
Mapping,
List,
)

import asyncio

import nest_asyncio
from bson import ObjectId
from motor import motor_asyncio
from motor.motor_asyncio import AsyncIOMotorDatabase
from pydantic import BaseModel
from pymongo import UpdateOne
from pymongo.collection import Collection
from pymongo.database import Database
from pymongo.results import InsertOneResult, UpdateResult, DeleteResult, BulkWriteResult, InsertManyResult

from motor import motor_asyncio

from .pagination import (
Edge,
decode_pagination_cursor,
encode_pagination_cursor,
get_pagination_cursor_payload,
)

import nest_asyncio
nest_asyncio.apply()

T = TypeVar("T", bound=BaseModel)
Expand Down

0 comments on commit f0aafcc

Please sign in to comment.