Skip to content

Commit b2ff169

Browse files
committed
Document new util method
1 parent a17d770 commit b2ff169

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stix2/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ def revoke(data):
250250

251251

252252
def get_class_hierarchy_names(obj):
253+
"""Given an object, return the names of the class hierarchy."""
253254
names = []
254255
for cls in obj.__class__.__mro__:
255256
names.append(cls.__name__)

0 commit comments

Comments
 (0)