Skip to content

Commit 716ee65

Browse files
committed
Lint fix
1 parent 6293584 commit 716ee65

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

polarion_rest_api_client/data_models.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __eq__(self, other: object) -> bool:
3737

3838
return self.get_current_checksum() == other.get_current_checksum()
3939

40-
def to_dict(self) -> dict[str, Any]:
40+
def to_dict(self) -> dict[str, t.Any]:
4141
"""Return the content of the BaseItem as dictionary."""
4242
return {
4343
"id": self.id,
@@ -72,7 +72,7 @@ class WorkItem(BaseItem):
7272
title: str | None = None
7373
description_type: str | None = None
7474
description: str | None = None
75-
additional_attributes: dict[str, Any] = {}
75+
additional_attributes: dict[str, t.Any] = {}
7676
linked_work_items: list[WorkItemLink] = []
7777
attachments: list[WorkItemAttachment] = []
7878

@@ -84,7 +84,7 @@ def __init__(
8484
description: str | None = None,
8585
type: str | None = None,
8686
status: str | None = None,
87-
additional_attributes: dict[str, Any] | None = None,
87+
additional_attributes: dict[str, t.Any] | None = None,
8888
linked_work_items: list[WorkItemLink] | None = None,
8989
attachments: list[WorkItemAttachment] | None = None,
9090
**kwargs,
@@ -97,13 +97,13 @@ def __init__(
9797
self.linked_work_items = linked_work_items or []
9898
self.attachments = attachments or []
9999

100-
def __getattribute__(self, item: str) -> Any:
100+
def __getattribute__(self, item: str) -> t.Any:
101101
"""Return all non WorkItem attributes from additional_properties."""
102102
if item.startswith("__") or item in dir(WorkItem):
103103
return super().__getattribute__(item)
104104
return self.additional_attributes.get(item)
105105

106-
def __setattr__(self, key: str, value: Any):
106+
def __setattr__(self, key: str, value: t.Any):
107107
"""Set all non WorkItem attributes in additional_properties."""
108108
if key in dir(WorkItem):
109109
super().__setattr__(key, value)
@@ -141,6 +141,8 @@ class WorkItemAttachment:
141141

142142

143143
class Document(BaseItem):
144+
"""A data class containing all relevant data of a Polarion Document."""
145+
144146
module_folder: str | None = None
145147
module_name: str | None = None
146148
home_page_content: dict | None = None

0 commit comments

Comments
 (0)