Skip to content

Commit

Permalink
fix: Fix labels mismatch staticmethod-classmethod in inspector
Browse files Browse the repository at this point in the history
Issue #111: #111
  • Loading branch information
pawamoy committed Nov 12, 2022
1 parent f297f1a commit 25060f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/griffe/agents/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,15 +283,15 @@ def inspect_staticmethod(self, node: ObjectNode) -> None:
Parameters:
node: The node to inspect.
"""
self.handle_function(node, {"classmethod"})
self.handle_function(node, {"staticmethod"})

def inspect_classmethod(self, node: ObjectNode) -> None:
"""Inspect a class method.
Parameters:
node: The node to inspect.
"""
self.handle_function(node, {"staticmethod"})
self.handle_function(node, {"classmethod"})

def inspect_method_descriptor(self, node: ObjectNode) -> None:
"""Inspect a method descriptor.
Expand Down

0 comments on commit 25060f6

Please sign in to comment.