Skip to content

Commit 4dd4a99

Browse files
authored
Feature/70 entity type key (#74)
1 parent fc7bae0 commit 4dd4a99

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ $ pip install git+https://github.com/elimity-com/insights-client-python.git
3333
| 1 | 2.8 - 2.10 |
3434
| 2 - 3 | 2.11 - 3.0 |
3535
| 4 | 3.1 - 3.3 |
36-
| 5 - 6 | ^3.4 |
36+
| 5 - 6 | 3.4 - 3.5 |
37+
| 7 | ^3.6 |

elimity_insights_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class EntityType:
193193

194194
anonymized: bool
195195
icon: str
196-
key: str
196+
id: str
197197
plural: str
198198
singular: str
199199

@@ -325,10 +325,10 @@ def _decode_relationship_attribute_types(json: Any) -> RelationshipAttributeType
325325
def _decode_entity_type(json: Any) -> EntityType:
326326
anonymized = json["anonymized"]
327327
icon = json["icon"]
328-
key = json["key"]
328+
id = json["id"]
329329
plural = json["plural"]
330330
singular = json["singular"]
331-
return EntityType(anonymized, icon, key, plural, singular)
331+
return EntityType(anonymized, icon, id, plural, singular)
332332

333333

334334
def _decode_type(json: Any) -> Type:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@
2626
python_requires=">=3.7",
2727
py_modules=["elimity_insights_client"],
2828
url="https://github.com/elimity-com/insights-client-python",
29-
version="6.0.0",
29+
version="7.0.0a0",
3030
)

test_elimity_insights_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def do_GET(self) -> None:
211211
{
212212
"anonymized": true,
213213
"icon": "foo",
214-
"key": "bar",
214+
"id": "bar",
215215
"plural": "baz",
216216
"singular": "bax"
217217
}

0 commit comments

Comments
 (0)