Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deps and discord invite regex update #269

Merged
merged 6 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
Changelog
=========

- :release:`11.4.0 <11th September 2024>`
- :feature:`269` Update :obj:`pydis_core.utils.regex.DISCORD_INVITE` to also match backslash before the invite code.


- :release:`11.3.1 <25th July 2024>`
- :bug:`-` Correct the docstring of :obj:`pydis_core.utils.interactions.ViewWithUserAndRoleCheck`.

Expand Down
2 changes: 1 addition & 1 deletion docs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ 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", "model_computed_fields"):
if symbol_name in ("model_config", "model_fields", "model_computed_fields") or symbol_name.startswith("__"):
# These are ClassVars added by pydantic.
# Since they're not in our source code, we cannot resolve them to a url.
return None
Expand Down
Loading
Loading