diff options
author | 2023-08-28 21:51:09 +0100 | |
---|---|---|
committer | 2023-08-28 21:51:09 +0100 | |
commit | 1309de6a1ea513763336fac1f12e1991b2510477 (patch) | |
tree | 12de82edeb9da3cb71e95c890a49539a3db483a6 /docs/utils.py | |
parent | Merge pull request #190 from python-discord/wait_until_bot_started (diff) | |
parent | Lint repo with new ruff rules (diff) |
Merge pull request #192 from python-discord/Bump-d.pyv10.2.0
Bump d.py to 2.3.2
Diffstat (limited to 'docs/utils.py')
-rw-r--r-- | docs/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/utils.py b/docs/utils.py index 3a20b87f..2b3cff5d 100644 --- a/docs/utils.py +++ b/docs/utils.py @@ -94,6 +94,10 @@ def linkcode_resolve(repo_link: str, domain: str, info: dict[str, str]) -> str | pos = _global_assign_pos(source, symbol_name) if pos is None: + if symbol_name in ("model_config", "model_fields"): + # These are ClassVars added by pydantic. + # Since they're not in our source code, we cannot resolve them to a url. + return None raise Exception(f"Could not find symbol `{symbol_name}` in {module.__name__}.") start, end = pos |