8000 Version 2.2.2 · core-api/python-client@02e6346 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Mar 18, 2019. It is now read-only.

Commit 02e6346

Browse files
committed
Version 2.2.2
1 parent eb9a181 commit 02e6346

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coreapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from coreapi.document import Array, Document, Link, Object, Error, Field
55

66

7-
__version__ = '2.2.1'
7+
__version__ = '2.2.2'
88
__all__ = [
99
'Array', 'Document', 'Link', 'Object', 'Error', 'Field',
1010
'Client',

coreapi/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def __eq__(self, other):
253253
self.encoding == other.encoding and
254254
self.transform == other.transform and
255255
self.description == other.description and
256-
self.fields == other.fields
256+
sorted(self.fields, key=lambda f: f.name) == sorted(other.fields, key=lambda f: f.name)
257257
)
258258

259259
def __repr__(self):

0 commit comments

Comments
 (0)
0