Skip to content

Commit

Permalink
!squash
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Jun 4, 2023
1 parent 448dae5 commit eec21cb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@
}


def linkcode_resolve(domain, info): # NOQA: C901
def linkcode_resolve(
domain: str, info: dict[str, str]
) -> t.Union[None, str]: # NOQA: C901
"""
Determine the URL corresponding to Python object
Expand Down Expand Up @@ -204,7 +206,8 @@ def linkcode_resolve(domain, info): # NOQA: C901
except AttributeError:
pass
else:
obj = unwrap(obj)
if callable(obj):
obj = unwrap(obj)

try:
fn = inspect.getsourcefile(obj)
Expand Down

0 comments on commit eec21cb

Please sign in to comment.