Skip to content

Commit 7d1fb99

Browse files
committed
Fix: members of namedtuple are now of type _tuplegetter
1 parent 3c5d8ea commit 7d1fb99

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graalpython/lib-graalpython/python_cext.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,8 +814,7 @@ def PyStructSequence_InitType2(tp_name, type_doc, field_names, field_docs):
814814
new_type.__doc__ = type_doc
815815
for i in range(len(field_names)):
816816
prop = getattr(new_type, field_names[i])
817-
assert isinstance(prop, property)
818-
prop.__doc__ = field_docs[i]
817+
assert hasattr(prop, "__doc__")
819818
# ensure '_fields' attribute; required in 'PyStructSequence_New'
820819
assert hasattr(new_type, "_fields")
821820
return new_type

0 commit comments

Comments
 (0)