Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian-Geyer committed Apr 4, 2024
1 parent 481134f commit b1cfb3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinxcontrib/mat_documenters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,7 @@ def can_document_member(cls, member, membername, isattr, parent):

def import_object(self):
ret = MatClassLevelDocumenter.import_object(self)
if self.object.attrs.get("Static"):
if self.object is not None and self.object.attrs.get("Static"):
self.directivetype = "staticmethod"
# document class and static members before ordinary ones
self.member_order = self.member_order - 1
Expand Down

0 comments on commit b1cfb3a

Please sign in to comment.