Skip to content

Commit 39a999e

Browse files
[issue-866] fix annotation access from class instance to class
This was a bug in the old code that only now throws an error in Python 3.14. Signed-off-by: Armin Tänzer <armin.taenzer@tngtech.com>
1 parent 087a508 commit 39a999e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spdx_tools/spdx3/writer/console/relationship_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ def write_relationship(relationship: Relationship, text_output: TextIO, heading:
1212
if heading:
1313
text_output.write("## Relationship\n")
1414
write_element_properties(relationship, text_output)
15-
for property_name in relationship.__annotations__.keys():
15+
for property_name in Relationship.__annotations__.keys():
1616
write_value(property_name, getattr(relationship, property_name), text_output)

0 commit comments

Comments
 (0)