Skip to content

Commit

Permalink
chore(ruff): Fix typings
Browse files Browse the repository at this point in the history
warning: Unexpected `# ruff: noqa` directive at docs/conf.py:187. File-level suppression comments must appear on their own line.
docs/conf.py:187:9: PERF203 `try`-`except` within a loop incurs performance overhead'
  • Loading branch information
tony committed Aug 19, 2023
1 parent 624ef1f commit 88a7b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def linkcode_resolve(domain: str, info: t.Dict[str, str]) -> t.Union[None, str]:
for part in fullname.split("."):
try:
obj = getattr(obj, part)
except Exception: # ruff: noqa: PERF203
except Exception: # noqa: PERF203
return None

# strip decorators, which would resolve to the source of the decorator
Expand Down

0 comments on commit 88a7b33

Please sign in to comment.