Skip to content

Commit

Permalink
style updates
Browse files Browse the repository at this point in the history
  • Loading branch information
garrison committed Oct 7, 2024
1 parent 53a8c8e commit 53fee56
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,7 @@ def linkcode_resolve(domain, info):
return None

def is_valid_code_object(obj):
return (
inspect.isclass(obj) or inspect.ismethod(obj) or inspect.isfunction(obj)
)
return inspect.isclass(obj) or inspect.ismethod(obj) or inspect.isfunction(obj)

obj = module
for part in info["fullname"].split("."):
Expand All @@ -166,7 +164,7 @@ def is_valid_code_object(obj):

# Unwrap decorators. This requires they used `functools.wrap()`.
while hasattr(obj, "__wrapped__"):
obj = getattr(obj, "__wrapped__")
obj = obj.__wrapped__
if not is_valid_code_object(obj):
return None

Expand Down

0 comments on commit 53fee56

Please sign in to comment.