Skip to content

Commit 01e3043

Browse files
authored
fix(data-models): Remove post init checksum setting from BaseItem
Merge pull request #19 from DSD-DBS/fix-base-item
2 parents 4519d69 + d74bd6d commit 01e3043

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

polarion_rest_api_client/data_models.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ class BaseItem:
1919
status: str | None = None
2020
_checksum: str | None = dataclasses.field(init=False, default=None)
2121

22-
def __post_init__(self):
23-
"""Set initial checksum value."""
24-
self._checksum = self.calculate_checksum()
25-
2622
def __eq__(self, other: object) -> bool:
2723
"""Compare only BaseItem attributes."""
2824
if not isinstance(other, BaseItem):

tests/test_client_documents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright DB Netz AG and contributors
1+
# Copyright DB InfraGO AG and contributors
22
# SPDX-License-Identifier: Apache-2.0
33

44
from __future__ import annotations

0 commit comments

Comments
 (0)