Skip to content

Commit 5189cdc

Browse files
committed
Fix QA
1 parent 5961ef3 commit 5189cdc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ansys/dpf/core/changelog.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
from packaging.version import Version
2828

2929
import ansys.dpf.core as dpf
30-
from ansys.dpf.core.check_version import version_requires
3130

3231

3332
class Changelog:
@@ -180,9 +179,9 @@ def changes_for_version(self, version: Version) -> str:
180179
property_name="changes", output_type=dpf.StringField
181180
)
182181
versions_list = versions_sf.data_as_list
183-
for i in range(len(versions_sf.scoping.ids)):
182+
for i, x in enumerate(versions_sf.scoping.ids):
184183
if Version(versions_list[i]) == version:
185-
return changes_sf.get_entity_data_by_id(versions_sf.scoping.ids[i])[0]
184+
return changes_sf.get_entity_data_by_id(x)[0]
186185
raise ValueError(f"Changelog has no version '{version}'.")
187186

188187
def __str__(self):

0 commit comments

Comments
 (0)