diff options
Diffstat (limited to '')
| -rw-r--r-- | docs/conf.py | 4 | ||||
| -rw-r--r-- | docs/netlify_build.py | 2 | ||||
| -rw-r--r-- | docs/utils.py | 4 | 
3 files changed, 4 insertions, 6 deletions
| diff --git a/docs/conf.py b/docs/conf.py index 2b68fc0f..5205b013 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -120,9 +120,7 @@ def skip(*args) -> bool:      name = args[2]      would_skip = args[4] -    if name in ( -        "__weakref__", -    ): +    if name == "__weakref__":          return True      return would_skip diff --git a/docs/netlify_build.py b/docs/netlify_build.py index a6da74df..4c35e6ba 100644 --- a/docs/netlify_build.py +++ b/docs/netlify_build.py @@ -23,4 +23,4 @@ OUTPUT.write_text(build_script.text, encoding="utf-8")  if __name__ == "__main__":      # Run the build script      print("Build started")  # noqa: T201 -    subprocess.run([sys.executable, OUTPUT.absolute()])  # noqa: S603 +    subprocess.run([sys.executable, OUTPUT.absolute()], check=False)  # noqa: S603 diff --git a/docs/utils.py b/docs/utils.py index 18a457b7..796eca3d 100644 --- a/docs/utils.py +++ b/docs/utils.py @@ -74,11 +74,11 @@ def linkcode_resolve(repo_link: str, domain: str, info: dict[str, str]) -> str |      for name in symbol_name.split("."):          try:              symbol.append(getattr(symbol[-1], name)) -        except AttributeError as e: +        except AttributeError:              # This could be caused by trying to link a class attribute              if is_attribute(symbol[-1], name):                  break -            raise e +            raise          symbol_name = name | 
