Debian Codegraph @

beanie/odm/enums.py

raw
1 from enum import Enum
2
3 import pymongo
4
5
6 class SortDirection(int, Enum):
7 """
8 Sorting directions
9 """
10
11 ASCENDING = pymongo.ASCENDING
12 DESCENDING = pymongo.DESCENDING
13
14
15 class InspectionStatuses(str, Enum):
16 """
17 Statuses of the collection inspection
18 """
19
20 FAIL = "FAIL"
21 OK = "OK"