From a2daec6c53cb338b5fc7fd9dd4dfc84021e0b662 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Mon, 21 Aug 2023 15:40:22 +0100 Subject: Bump d.py to 2.3.2 --- docs/changelog.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/changelog.rst b/docs/changelog.rst index 75a7c40a..3a1c7bec 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -5,6 +5,10 @@ Changelog ========= +- :release:`10.2.0 <28th August 2023>` +- :support:`192` Bump Discord.py to :literal-url:`2.3.2 `. + + - :release:`10.1.0 <25th July 2023>` - :feature:`190` Overwrite :obj:`discord.ext.commands.Bot.process_commands` to ensure no commands are processed until all extensions are loaded. This only works for clients using :obj:`pydis_core.BotBase.load_extensions`. -- cgit v1.2.3 From a924e14becb37288a3dcbf8ff613ce43c24f1da6 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Tue, 22 Aug 2023 20:38:52 +0100 Subject: Add pydantic BaseModel to target to ignore --- docs/conf.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/conf.py b/docs/conf.py index 683f9e51..b06300a3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -155,14 +155,15 @@ def setup(app: Sphinx) -> None: app.add_role("breaking", releases.issues_role) -ignored_modules = [ +ignored_targets = [ "async_rediscache", + "pydantic.main.BaseModel" ] # nitpick raises warnings as errors. This regex tells nitpick to ignore any warnings that match this regex. -# This is a workaround for modules that do not have docs that can be linked out to. +# This is a workaround for modules/classes that do not have docs that can be linked out to. nitpick_ignore_regex = [ - ("py:.*", "|".join([f".*{entry}.*" for entry in ignored_modules])), + ("py:.*", "|".join([f".*{entry}.*" for entry in ignored_targets])), ] # -- Extension configuration ------------------------------------------------- -- cgit v1.2.3 From 99cde31b284b57b76d46e9e8ceb7de25a735434c Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Mon, 28 Aug 2023 20:49:46 +0100 Subject: Skip resolving for pydantic model fields --- docs/utils.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') 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 -- cgit v1.2.3