Merge pull request #1912 from bagerard/fix_deprecation_warning_Hashable

Fix deprecation warning about Hashable in py3.7
This commit is contained in:
erdenezul
2018-10-10 16:32:50 +08:00
committed by GitHub
2 changed files with 8 additions and 1 deletions

View File

@@ -1,6 +1,5 @@
import copy
import numbers
from collections import Hashable
from functools import partial
from bson import ObjectId, json_util
@@ -19,6 +18,7 @@ from mongoengine.base.fields import ComplexBaseField
from mongoengine.common import _import_class
from mongoengine.errors import (FieldDoesNotExist, InvalidDocumentError,
LookUpError, OperationError, ValidationError)
from mongoengine.python_support import Hashable
__all__ = ('BaseDocument', 'NON_FIELD_ERRORS')