qi-compute-api-client 0.4.0__py3-none-any.whl → 0.17.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of qi-compute-api-client might be problematic. Click here for more details.

Files changed (166) hide show
  1. compute_api_client/__init__.py +23 -20
  2. compute_api_client/api/__init__.py +5 -6
  3. compute_api_client/api/algorithms_api.py +1334 -554
  4. compute_api_client/api/backend_api.py +1501 -0
  5. compute_api_client/api/backend_types_api.py +684 -0
  6. compute_api_client/api/batch_jobs_api.py +1937 -0
  7. compute_api_client/api/commits_api.py +1069 -436
  8. compute_api_client/api/files_api.py +1076 -436
  9. compute_api_client/api/final_results_api.py +737 -339
  10. compute_api_client/api/jobs_api.py +1653 -0
  11. compute_api_client/api/languages_api.py +557 -218
  12. compute_api_client/api/members_api.py +1058 -436
  13. compute_api_client/api/metadata_api.py +737 -338
  14. compute_api_client/api/permissions_api.py +1056 -422
  15. compute_api_client/api/projects_api.py +1605 -677
  16. compute_api_client/api/reservations_api.py +1125 -428
  17. compute_api_client/api/results_api.py +739 -338
  18. compute_api_client/api/teams_api.py +568 -221
  19. compute_api_client/api/transactions_api.py +680 -219
  20. compute_api_client/api/users_api.py +1091 -436
  21. compute_api_client/api_client.py +347 -305
  22. compute_api_client/api_response.py +21 -0
  23. compute_api_client/configuration.py +55 -68
  24. compute_api_client/docs/Algorithm.md +20 -3
  25. compute_api_client/docs/AlgorithmIn.md +20 -3
  26. compute_api_client/docs/AlgorithmType.md +0 -1
  27. compute_api_client/docs/AlgorithmsApi.md +78 -77
  28. compute_api_client/docs/Backend.md +33 -0
  29. compute_api_client/docs/BackendApi.md +419 -0
  30. compute_api_client/docs/BackendPatch.md +29 -0
  31. compute_api_client/docs/{RunStatus.md → BackendStatus.md} +1 -2
  32. compute_api_client/docs/BackendType.md +36 -0
  33. compute_api_client/docs/{RuntimeTypesApi.md → BackendTypesApi.md} +58 -31
  34. compute_api_client/docs/BackendWithAuthentication.md +34 -0
  35. compute_api_client/docs/BatchJob.md +38 -0
  36. compute_api_client/docs/BatchJobIn.md +29 -0
  37. compute_api_client/docs/{RuntimeStatus.md → BatchJobStatus.md} +1 -2
  38. compute_api_client/docs/BatchJobsApi.md +524 -0
  39. compute_api_client/docs/Commit.md +18 -1
  40. compute_api_client/docs/CommitIn.md +17 -0
  41. compute_api_client/docs/CommitsApi.md +62 -71
  42. compute_api_client/docs/CompileStage.md +0 -1
  43. compute_api_client/docs/Domain.md +0 -1
  44. compute_api_client/docs/File.md +21 -4
  45. compute_api_client/docs/FileIn.md +21 -4
  46. compute_api_client/docs/FilesApi.md +65 -71
  47. compute_api_client/docs/FinalResult.md +20 -3
  48. compute_api_client/docs/FinalResultIn.md +19 -2
  49. compute_api_client/docs/FinalResultsApi.md +44 -71
  50. compute_api_client/docs/HTTPNotFoundError.md +17 -0
  51. compute_api_client/docs/HTTPValidationError.md +18 -1
  52. compute_api_client/docs/Job.md +36 -0
  53. compute_api_client/docs/JobIn.md +31 -0
  54. compute_api_client/docs/JobPatch.md +28 -0
  55. compute_api_client/docs/{BatchRunStatus.md → JobStatus.md} +1 -2
  56. compute_api_client/docs/{RunsApi.md → JobsApi.md} +137 -122
  57. compute_api_client/docs/Language.md +17 -0
  58. compute_api_client/docs/LanguagesApi.md +30 -12
  59. compute_api_client/docs/LocationInner.md +17 -0
  60. compute_api_client/docs/Member.md +19 -2
  61. compute_api_client/docs/MemberIn.md +19 -2
  62. compute_api_client/docs/MembersApi.md +59 -24
  63. compute_api_client/docs/Metadata.md +20 -3
  64. compute_api_client/docs/MetadataApi.md +49 -33
  65. compute_api_client/docs/MetadataIn.md +19 -2
  66. compute_api_client/docs/Permission.md +17 -0
  67. compute_api_client/docs/PermissionGroup.md +17 -0
  68. compute_api_client/docs/PermissionsApi.md +68 -28
  69. compute_api_client/docs/Project.md +20 -3
  70. compute_api_client/docs/ProjectIn.md +18 -1
  71. compute_api_client/docs/ProjectPatch.md +19 -2
  72. compute_api_client/docs/ProjectsApi.md +84 -36
  73. compute_api_client/docs/Reservation.md +21 -4
  74. compute_api_client/docs/ReservationIn.md +19 -2
  75. compute_api_client/docs/ReservationsApi.md +66 -24
  76. compute_api_client/docs/Result.md +23 -6
  77. compute_api_client/docs/ResultIn.md +19 -2
  78. compute_api_client/docs/ResultsApi.md +40 -74
  79. compute_api_client/docs/Role.md +0 -1
  80. compute_api_client/docs/ShareType.md +0 -1
  81. compute_api_client/docs/Team.md +18 -1
  82. compute_api_client/docs/TeamsApi.md +37 -14
  83. compute_api_client/docs/Transaction.md +21 -4
  84. compute_api_client/docs/TransactionsApi.md +50 -14
  85. compute_api_client/docs/User.md +21 -4
  86. compute_api_client/docs/UserIn.md +17 -0
  87. compute_api_client/docs/UsersApi.md +62 -24
  88. compute_api_client/docs/ValidationError.md +18 -1
  89. compute_api_client/exceptions.py +20 -17
  90. compute_api_client/models/__init__.py +17 -15
  91. compute_api_client/models/algorithm.py +79 -238
  92. compute_api_client/models/algorithm_in.py +77 -205
  93. compute_api_client/models/algorithm_type.py +22 -88
  94. compute_api_client/models/backend.py +100 -0
  95. compute_api_client/models/backend_patch.py +90 -0
  96. compute_api_client/models/backend_status.py +47 -0
  97. compute_api_client/models/backend_type.py +105 -0
  98. compute_api_client/models/backend_with_authentication.py +102 -0
  99. compute_api_client/models/batch_job.py +129 -0
  100. compute_api_client/models/batch_job_in.py +89 -0
  101. compute_api_client/models/batch_job_status.py +48 -0
  102. compute_api_client/models/commit.py +73 -231
  103. compute_api_client/models/commit_in.py +68 -170
  104. compute_api_client/models/compile_stage.py +24 -90
  105. compute_api_client/models/domain.py +23 -89
  106. compute_api_client/models/file.py +75 -289
  107. compute_api_client/models/file_in.py +73 -255
  108. compute_api_client/models/final_result.py +69 -199
  109. compute_api_client/models/final_result_in.py +64 -138
  110. compute_api_client/models/http_not_found_error.py +61 -106
  111. compute_api_client/models/http_validation_error.py +70 -106
  112. compute_api_client/models/job.py +120 -0
  113. compute_api_client/models/job_in.py +99 -0
  114. compute_api_client/models/job_patch.py +88 -0
  115. compute_api_client/models/job_status.py +48 -0
  116. compute_api_client/models/language.py +68 -173
  117. compute_api_client/models/location_inner.py +126 -85
  118. compute_api_client/models/member.py +71 -237
  119. compute_api_client/models/member_in.py +69 -204
  120. compute_api_client/models/metadata.py +69 -199
  121. compute_api_client/models/metadata_in.py +69 -138
  122. compute_api_client/models/permission.py +68 -173
  123. compute_api_client/models/permission_group.py +66 -143
  124. compute_api_client/models/project.py +75 -257
  125. compute_api_client/models/project_in.py +70 -196
  126. compute_api_client/models/project_patch.py +90 -193
  127. compute_api_client/models/reservation.py +80 -291
  128. compute_api_client/models/reservation_in.py +69 -201
  129. compute_api_client/models/result.py +102 -360
  130. compute_api_client/models/result_in.py +96 -293
  131. compute_api_client/models/role.py +22 -88
  132. compute_api_client/models/share_type.py +23 -89
  133. compute_api_client/models/team.py +70 -199
  134. compute_api_client/models/transaction.py +94 -300
  135. compute_api_client/models/user.py +76 -277
  136. compute_api_client/models/user_in.py +74 -244
  137. compute_api_client/models/validation_error.py +74 -161
  138. compute_api_client/rest.py +56 -115
  139. {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/METADATA +47 -40
  140. qi_compute_api_client-0.17.0.dist-info/RECORD +142 -0
  141. compute_api_client/api/batch_runs_api.py +0 -862
  142. compute_api_client/api/runs_api.py +0 -723
  143. compute_api_client/api/runtime_api.py +0 -449
  144. compute_api_client/api/runtime_types_api.py +0 -303
  145. compute_api_client/docs/BatchRun.md +0 -21
  146. compute_api_client/docs/BatchRunIn.md +0 -12
  147. compute_api_client/docs/BatchRunsApi.md +0 -600
  148. compute_api_client/docs/Run.md +0 -18
  149. compute_api_client/docs/RunIn.md +0 -13
  150. compute_api_client/docs/Runtime.md +0 -16
  151. compute_api_client/docs/RuntimeApi.md +0 -229
  152. compute_api_client/docs/RuntimeType.md +0 -19
  153. compute_api_client/docs/RuntimeWithAuthentication.md +0 -17
  154. compute_api_client/models/batch_run.py +0 -423
  155. compute_api_client/models/batch_run_in.py +0 -171
  156. compute_api_client/models/batch_run_status.py +0 -114
  157. compute_api_client/models/run.py +0 -345
  158. compute_api_client/models/run_in.py +0 -202
  159. compute_api_client/models/run_status.py +0 -114
  160. compute_api_client/models/runtime.py +0 -290
  161. compute_api_client/models/runtime_status.py +0 -113
  162. compute_api_client/models/runtime_type.py +0 -357
  163. compute_api_client/models/runtime_with_authentication.py +0 -320
  164. qi_compute_api_client-0.4.0.dist-info/RECORD +0 -137
  165. {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/LICENSE.md +0 -0
  166. {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/WHEEL +0 -0
@@ -1,112 +1,46 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Compute Job Manager
4
+ Quantum Inspire 2
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
8
  The version of the OpenAPI document: 0.1.0
9
- Generated by: https://openapi-generator.tech
10
- """
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
10
 
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
12
13
 
13
- try:
14
- from inspect import getfullargspec
15
- except ImportError:
16
- from inspect import getargspec as getfullargspec
14
+
15
+ from __future__ import annotations
16
+ import json
17
17
  import pprint
18
18
  import re # noqa: F401
19
- import six
19
+ from enum import Enum
20
20
 
21
- from compute_api_client.configuration import Configuration
22
21
 
23
22
 
24
- class ShareType(object):
25
- """NOTE: This class is auto generated by OpenAPI Generator.
26
- Ref: https://openapi-generator.tech
23
+ try:
24
+ from typing import Self
25
+ except ImportError:
26
+ from typing_extensions import Self
27
27
 
28
- Do not edit the class manually.
29
- """
30
28
 
29
+ class ShareType(str, Enum):
31
30
  """
32
- allowed enum values
31
+ ShareType
33
32
  """
34
- PRIVATE = "private"
35
- LINK_ONLY = "link_only"
36
- TEAM = "team"
37
-
38
- allowable_values = [PRIVATE, LINK_ONLY, TEAM] # noqa: E501
39
33
 
40
34
  """
41
- Attributes:
42
- openapi_types (dict): The key is attribute name
43
- and the value is attribute type.
44
- attribute_map (dict): The key is attribute name
45
- and the value is json key in definition.
35
+ allowed enum values
46
36
  """
47
- openapi_types = {
48
- }
49
-
50
- attribute_map = {
51
- }
52
-
53
- def __init__(self, local_vars_configuration=None): # noqa: E501
54
- """ShareType - a model defined in OpenAPI""" # noqa: E501
55
- if local_vars_configuration is None:
56
- local_vars_configuration = Configuration.get_default_copy()
57
- self.local_vars_configuration = local_vars_configuration
58
- self.discriminator = None
59
-
60
- def to_dict(self, serialize=False):
61
- """Returns the model properties as a dict"""
62
- result = {}
63
-
64
- def convert(x):
65
- if hasattr(x, "to_dict"):
66
- args = getfullargspec(x.to_dict).args
67
- if len(args) == 1:
68
- return x.to_dict()
69
- else:
70
- return x.to_dict(serialize)
71
- else:
72
- return x
73
-
74
- for attr, _ in six.iteritems(self.openapi_types):
75
- value = getattr(self, attr)
76
- attr = self.attribute_map.get(attr, attr) if serialize else attr
77
- if isinstance(value, list):
78
- result[attr] = list(map(
79
- lambda x: convert(x),
80
- value
81
- ))
82
- elif isinstance(value, dict):
83
- result[attr] = dict(map(
84
- lambda item: (item[0], convert(item[1])),
85
- value.items()
86
- ))
87
- else:
88
- result[attr] = convert(value)
89
-
90
- return result
91
-
92
- def to_str(self):
93
- """Returns the string representation of the model"""
94
- return pprint.pformat(self.to_dict())
95
-
96
- def __repr__(self):
97
- """For `print` and `pprint`"""
98
- return self.to_str()
99
-
100
- def __eq__(self, other):
101
- """Returns true if both objects are equal"""
102
- if not isinstance(other, ShareType):
103
- return False
37
+ PRIVATE = 'private'
38
+ LINK_ONLY = 'link_only'
39
+ TEAM = 'team'
104
40
 
105
- return self.to_dict() == other.to_dict()
41
+ @classmethod
42
+ def from_json(cls, json_str: str) -> Self:
43
+ """Create an instance of ShareType from a JSON string"""
44
+ return cls(json.loads(json_str))
106
45
 
107
- def __ne__(self, other):
108
- """Returns true if both objects are not equal"""
109
- if not isinstance(other, ShareType):
110
- return True
111
46
 
112
- return self.to_dict() != other.to_dict()
@@ -1,224 +1,95 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- Compute Job Manager
4
+ Quantum Inspire 2
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
 
8
8
  The version of the OpenAPI document: 0.1.0
9
- Generated by: https://openapi-generator.tech
10
- """
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
10
 
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
12
13
 
13
- try:
14
- from inspect import getfullargspec
15
- except ImportError:
16
- from inspect import getargspec as getfullargspec
14
+
15
+ from __future__ import annotations
17
16
  import pprint
18
17
  import re # noqa: F401
19
- import six
20
-
21
- from compute_api_client.configuration import Configuration
18
+ import json
22
19
 
23
20
 
24
- class Team(object):
25
- """NOTE: This class is auto generated by OpenAPI Generator.
26
- Ref: https://openapi-generator.tech
27
-
28
- Do not edit the class manually.
29
- """
21
+ from typing import Any, ClassVar, Dict, List
22
+ from pydantic import BaseModel, StrictBool, StrictInt
23
+ from pydantic import Field
24
+ from typing_extensions import Annotated
25
+ try:
26
+ from typing import Self
27
+ except ImportError:
28
+ from typing_extensions import Self
30
29
 
30
+ class Team(BaseModel):
31
31
  """
32
- Attributes:
33
- openapi_types (dict): The key is attribute name
34
- and the value is attribute type.
35
- attribute_map (dict): The key is attribute name
36
- and the value is json key in definition.
37
- """
38
- openapi_types = {
39
- 'id': 'int',
40
- 'name': 'str',
41
- 'slug': 'str',
42
- 'individual_user': 'bool'
43
- }
44
-
45
- attribute_map = {
46
- 'id': 'id',
47
- 'name': 'name',
48
- 'slug': 'slug',
49
- 'individual_user': 'individual_user'
32
+ Team
33
+ """ # noqa: E501
34
+ id: StrictInt
35
+ name: Annotated[str, Field(strict=True, max_length=64)]
36
+ slug: Annotated[str, Field(strict=True, max_length=64)]
37
+ individual_user: StrictBool
38
+ __properties: ClassVar[List[str]] = ["id", "name", "slug", "individual_user"]
39
+
40
+ model_config = {
41
+ "populate_by_name": True,
42
+ "validate_assignment": True
50
43
  }
51
44
 
52
- def __init__(self, id=None, name=None, slug=None, individual_user=False, local_vars_configuration=None): # noqa: E501
53
- """Team - a model defined in OpenAPI""" # noqa: E501
54
- if local_vars_configuration is None:
55
- local_vars_configuration = Configuration.get_default_copy()
56
- self.local_vars_configuration = local_vars_configuration
57
-
58
- self._id = None
59
- self._name = None
60
- self._slug = None
61
- self._individual_user = None
62
- self.discriminator = None
63
-
64
- self.id = id
65
- self.name = name
66
- self.slug = slug
67
- if individual_user is not None:
68
- self.individual_user = individual_user
69
-
70
- @property
71
- def id(self):
72
- """Gets the id of this Team. # noqa: E501
73
45
 
46
+ def to_str(self) -> str:
47
+ """Returns the string representation of the model using alias"""
48
+ return pprint.pformat(self.model_dump(by_alias=True))
74
49
 
75
- :return: The id of this Team. # noqa: E501
76
- :rtype: int
77
- """
78
- return self._id
79
-
80
- @id.setter
81
- def id(self, id):
82
- """Sets the id of this Team.
83
-
84
-
85
- :param id: The id of this Team. # noqa: E501
86
- :type id: int
87
- """
88
- if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
89
- raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
90
- if (self.local_vars_configuration.client_side_validation and
91
- id is not None and id > 2147483647): # noqa: E501
92
- raise ValueError("Invalid value for `id`, must be a value less than or equal to `2147483647`") # noqa: E501
93
- if (self.local_vars_configuration.client_side_validation and
94
- id is not None and id < 1): # noqa: E501
95
- raise ValueError("Invalid value for `id`, must be a value greater than or equal to `1`") # noqa: E501
50
+ def to_json(self) -> str:
51
+ """Returns the JSON representation of the model using alias"""
52
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
53
+ return json.dumps(self.to_dict())
96
54
 
97
- self._id = id
55
+ @classmethod
56
+ def from_json(cls, json_str: str) -> Self:
57
+ """Create an instance of Team from a JSON string"""
58
+ return cls.from_dict(json.loads(json_str))
98
59
 
99
- @property
100
- def name(self):
101
- """Gets the name of this Team. # noqa: E501
60
+ def to_dict(self) -> Dict[str, Any]:
61
+ """Return the dictionary representation of the model using alias.
102
62
 
63
+ This has the following differences from calling pydantic's
64
+ `self.model_dump(by_alias=True)`:
103
65
 
104
- :return: The name of this Team. # noqa: E501
105
- :rtype: str
66
+ * `None` is only added to the output dict for nullable fields that
67
+ were set at model initialization. Other fields with value `None`
68
+ are ignored.
106
69
  """
107
- return self._name
70
+ _dict = self.model_dump(
71
+ by_alias=True,
72
+ exclude={
73
+ },
74
+ exclude_none=True,
75
+ )
76
+ return _dict
77
+
78
+ @classmethod
79
+ def from_dict(cls, obj: Dict) -> Self:
80
+ """Create an instance of Team from a dict"""
81
+ if obj is None:
82
+ return None
83
+
84
+ if not isinstance(obj, dict):
85
+ return cls.model_validate(obj)
86
+
87
+ _obj = cls.model_validate({
88
+ "id": obj.get("id"),
89
+ "name": obj.get("name"),
90
+ "slug": obj.get("slug"),
91
+ "individual_user": obj.get("individual_user")
92
+ })
93
+ return _obj
108
94
 
109
- @name.setter
110
- def name(self, name):
111
- """Sets the name of this Team.
112
-
113
-
114
- :param name: The name of this Team. # noqa: E501
115
- :type name: str
116
- """
117
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
118
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
119
- if (self.local_vars_configuration.client_side_validation and
120
- name is not None and len(name) > 64):
121
- raise ValueError("Invalid value for `name`, length must be less than or equal to `64`") # noqa: E501
122
-
123
- self._name = name
124
-
125
- @property
126
- def slug(self):
127
- """Gets the slug of this Team. # noqa: E501
128
-
129
-
130
- :return: The slug of this Team. # noqa: E501
131
- :rtype: str
132
- """
133
- return self._slug
134
-
135
- @slug.setter
136
- def slug(self, slug):
137
- """Sets the slug of this Team.
138
-
139
-
140
- :param slug: The slug of this Team. # noqa: E501
141
- :type slug: str
142
- """
143
- if self.local_vars_configuration.client_side_validation and slug is None: # noqa: E501
144
- raise ValueError("Invalid value for `slug`, must not be `None`") # noqa: E501
145
- if (self.local_vars_configuration.client_side_validation and
146
- slug is not None and len(slug) > 64):
147
- raise ValueError("Invalid value for `slug`, length must be less than or equal to `64`") # noqa: E501
148
-
149
- self._slug = slug
150
-
151
- @property
152
- def individual_user(self):
153
- """Gets the individual_user of this Team. # noqa: E501
154
-
155
-
156
- :return: The individual_user of this Team. # noqa: E501
157
- :rtype: bool
158
- """
159
- return self._individual_user
160
-
161
- @individual_user.setter
162
- def individual_user(self, individual_user):
163
- """Sets the individual_user of this Team.
164
-
165
-
166
- :param individual_user: The individual_user of this Team. # noqa: E501
167
- :type individual_user: bool
168
- """
169
95
 
170
- self._individual_user = individual_user
171
-
172
- def to_dict(self, serialize=False):
173
- """Returns the model properties as a dict"""
174
- result = {}
175
-
176
- def convert(x):
177
- if hasattr(x, "to_dict"):
178
- args = getfullargspec(x.to_dict).args
179
- if len(args) == 1:
180
- return x.to_dict()
181
- else:
182
- return x.to_dict(serialize)
183
- else:
184
- return x
185
-
186
- for attr, _ in six.iteritems(self.openapi_types):
187
- value = getattr(self, attr)
188
- attr = self.attribute_map.get(attr, attr) if serialize else attr
189
- if isinstance(value, list):
190
- result[attr] = list(map(
191
- lambda x: convert(x),
192
- value
193
- ))
194
- elif isinstance(value, dict):
195
- result[attr] = dict(map(
196
- lambda item: (item[0], convert(item[1])),
197
- value.items()
198
- ))
199
- else:
200
- result[attr] = convert(value)
201
-
202
- return result
203
-
204
- def to_str(self):
205
- """Returns the string representation of the model"""
206
- return pprint.pformat(self.to_dict())
207
-
208
- def __repr__(self):
209
- """For `print` and `pprint`"""
210
- return self.to_str()
211
-
212
- def __eq__(self, other):
213
- """Returns true if both objects are equal"""
214
- if not isinstance(other, Team):
215
- return False
216
-
217
- return self.to_dict() == other.to_dict()
218
-
219
- def __ne__(self, other):
220
- """Returns true if both objects are not equal"""
221
- if not isinstance(other, Team):
222
- return True
223
-
224
- return self.to_dict() != other.to_dict()