From 4497a82c504818d61ab18c5251ae2bc42bae279e Mon Sep 17 00:00:00 2001 From: ChrisLovering Date: Sat, 23 Nov 2024 18:47:50 +0000 Subject: Deploying to docs from @ python-discord/bot-core@bdaaa2e76d4cb32843754757532ef8d73ac97761 πŸš€ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v10.5.1/output/pydis_core.async_stats.html | 28 +++-- v10.5.1/output/pydis_core.exts.html | 14 ++- v10.5.1/output/pydis_core.html | 56 +++++----- v10.5.1/output/pydis_core.site_api.html | 60 ++++++----- v10.5.1/output/pydis_core.utils.caching.html | 24 +++-- v10.5.1/output/pydis_core.utils.channel.html | 20 ++-- v10.5.1/output/pydis_core.utils.commands.html | 18 +++- v10.5.1/output/pydis_core.utils.cooldown.html | 26 +++-- .../output/pydis_core.utils.error_handling.html | 18 +++- v10.5.1/output/pydis_core.utils.function.html | 36 ++++--- v10.5.1/output/pydis_core.utils.html | 28 +++-- v10.5.1/output/pydis_core.utils.interactions.html | 32 +++--- v10.5.1/output/pydis_core.utils.logging.html | 26 +++-- v10.5.1/output/pydis_core.utils.members.html | 22 ++-- v10.5.1/output/pydis_core.utils.paste_service.html | 114 +++++++++++---------- v10.5.1/output/pydis_core.utils.regex.html | 16 ++- v10.5.1/output/pydis_core.utils.scheduling.html | 66 ++++++------ 17 files changed, 369 insertions(+), 235 deletions(-) (limited to 'v10.5.1/output') diff --git a/v10.5.1/output/pydis_core.async_stats.html b/v10.5.1/output/pydis_core.async_stats.html index 3d893c75..8e1c0e25 100644 --- a/v10.5.1/output/pydis_core.async_stats.html +++ b/v10.5.1/output/pydis_core.async_stats.html @@ -5,13 +5,13 @@ - + async_stats - Pydis Core v10.5.1 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -455,11 +463,11 @@
    Parameters:
    @@ -468,10 +476,10 @@
    async create_socket()[source]ΒΆ
    -

    Use asyncio.loop.create_datagram_endpoint from the loop given on init to create a socket.

    +

    Use asyncio.loop.create_datagram_endpoint from the loop given on init to create a socket.

    Return type:
    -

    None

    +

    None

    @@ -553,7 +561,7 @@ - + diff --git a/v10.5.1/output/pydis_core.exts.html b/v10.5.1/output/pydis_core.exts.html index b7d64d54..fca33f47 100644 --- a/v10.5.1/output/pydis_core.exts.html +++ b/v10.5.1/output/pydis_core.exts.html @@ -5,13 +5,13 @@ - + Exts - Pydis Core v10.5.1 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -495,7 +503,7 @@ - + diff --git a/v10.5.1/output/pydis_core.html b/v10.5.1/output/pydis_core.html index 54c57190..67741cf8 100644 --- a/v10.5.1/output/pydis_core.html +++ b/v10.5.1/output/pydis_core.html @@ -5,13 +5,13 @@ - + Pydis Core - Pydis Core v10.5.1 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -455,12 +463,12 @@
    Parameters:
    @@ -473,7 +481,7 @@ a dummy statsd client will be created.

    Add the given cog to the bot and log the operation.

    Return type:
    -

    None

    +

    None

    @@ -484,7 +492,7 @@ a dummy statsd client will be created.

    Add command as normal and then add its root aliases to the bot.

    Return type:
    -

    None

    +

    None

    @@ -495,7 +503,7 @@ a dummy statsd client will be created.

    Not implemented! Re-instantiate the bot instead of attempting to re-use a closed one.

    Return type:
    -

    None

    +

    None

    @@ -506,7 +514,7 @@ a dummy statsd client will be created.

    Close the Discord connection, and the aiohttp session, connector, statsd client, and resolver.

    Return type:
    -

    None

    +

    None

    @@ -517,10 +525,10 @@ a dummy statsd client will be created.

    Load all the extensions within the given module and save them to self.all_extensions.

    Parameters:
    -

    sync_app_commands (bool) – Whether to sync app commands after all extensions are loaded.

    +

    sync_app_commands (bool) – Whether to sync app commands after all extensions are loaded.

    Return type:
    -

    None

    +

    None

    @@ -531,7 +539,7 @@ a dummy statsd client will be created.

    Log the given message to #dev-log.

    Return type:
    -

    None

    +

    None

    @@ -544,7 +552,7 @@ a dummy statsd client will be created.

    will not be set and guild_available_but_cache_empty event will be emitted.

    Return type:
    -

    None

    +

    None

    @@ -555,7 +563,7 @@ will not be set and guild_available_but_cache_empty event will be e

    Clear the internal guild available event when self.guild_id becomes unavailable.

    Return type:
    -

    None

    +

    None

    @@ -566,7 +574,7 @@ will not be set and guild_available_but_cache_empty event will be e

    Ping all required services on setup to ensure they are up before starting.

    Return type:
    -

    None

    +

    None

    @@ -578,7 +586,7 @@ will not be set and guild_available_but_cache_empty event will be e

    This extension check is only relevant for clients that make use of pydis_core.BotBase.load_extensions.

    Return type:
    -

    None

    +

    None

    @@ -591,7 +599,7 @@ will not be set and guild_available_but_cache_empty event will be e To remove them, either remove the entire command or manually edit bot.all_commands.

    Return type:
    -

    Command | None

    +

    Command | None

    @@ -605,7 +613,7 @@ To remove them, either remove the entire command or manually edit bot.all_ and ping_services().

    Return type:
    -

    None

    +

    None

    @@ -618,7 +626,7 @@ and
    Return type:
    -

    None

    +

    None

    @@ -628,7 +636,7 @@ gateway event before giving up and thus not populating the cache for unavailable
    exception StartupError(base)[source]ΒΆ
    -

    Bases: Exception

    +

    Bases: Exception

    Exception class for startup errors.

    @@ -848,7 +856,7 @@ gateway event before giving up and thus not populating the cache for unavailable - + diff --git a/v10.5.1/output/pydis_core.site_api.html b/v10.5.1/output/pydis_core.site_api.html index e836e9e1..e18c407c 100644 --- a/v10.5.1/output/pydis_core.site_api.html +++ b/v10.5.1/output/pydis_core.site_api.html @@ -5,13 +5,13 @@ - + site_api - Pydis Core v10.5.1 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -446,7 +454,7 @@
    class APIClient(site_api_url, site_api_token, **session_kwargs)[source]ΒΆ
    -

    Bases: object

    +

    Bases: object

    A wrapper for the Django Site API.

    @@ -455,9 +463,9 @@
    Parameters:
      -
    • site_api_url (str) – The URL of the site API.

    • -
    • site_api_token (str) – The token to use for authentication.

    • -
    • session_kwargs – Keyword arguments to pass to the aiohttp.ClientSession constructor.

    • +
    • site_api_url (str) – The URL of the site API.

    • +
    • site_api_token (str) – The token to use for authentication.

    • +
    • session_kwargs – Keyword arguments to pass to the aiohttp.ClientSession constructor.

    @@ -469,7 +477,7 @@

    Close the aiohttp session.

    Return type:
    -

    None

    +

    None

    @@ -480,7 +488,7 @@

    Equivalent to APIClient.request() with DELETE passed as the method.

    Return type:
    -

    dict | None

    +

    dict | None

    @@ -491,7 +499,7 @@

    Equivalent to APIClient.request() with GET passed as the method.

    Return type:
    -

    dict | None

    +

    dict | None

    @@ -503,15 +511,15 @@
    Parameters:
      -
    • response (aiohttp.ClientResponse) – The response to check.

    • -
    • should_raise (bool) – Whether or not to raise an exception.

    • +
    • response (aiohttp.ClientResponse) – The response to check.

    • +
    • should_raise (bool) – Whether or not to raise an exception.

    Raises:

    ResponseCodeError – If the response is not OK and should_raise is True.

    Return type:
    -

    None

    +

    None

    @@ -522,7 +530,7 @@

    Equivalent to APIClient.request() with PATCH passed as the method.

    Return type:
    -

    dict | None

    +

    dict | None

    @@ -533,7 +541,7 @@

    Equivalent to APIClient.request() with POST passed as the method.

    Return type:
    -

    dict | None

    +

    dict | None

    @@ -544,7 +552,7 @@

    Equivalent to APIClient.request() with PUT passed as the method.

    Return type:
    -

    dict | None

    +

    dict | None

    @@ -556,17 +564,17 @@
    Parameters:
      -
    • method (str) – The HTTP method to use.

    • -
    • endpoint (str) – The endpoint to send the request to.

    • -
    • raise_for_status (bool) – Whether or not to raise an exception if the response is not OK.

    • -
    • **kwargs – Any extra keyword arguments to pass to aiohttp.request().

    • +
    • method (str) – The HTTP method to use.

    • +
    • endpoint (str) – The endpoint to send the request to.

    • +
    • raise_for_status (bool) – Whether or not to raise an exception if the response is not OK.

    • +
    • **kwargs – Any extra keyword arguments to pass to aiohttp.request().

    Return type:
    -

    dict | None

    +

    dict | None

    Returns:
    -

    The JSON response the API returns, or None if the response code is 204.

    +

    The JSON response the API returns, or None if the response code is 204.

    Raises:

    ResponseCodeError – If the response is not OK and raise_for_status is True.

    @@ -579,7 +587,7 @@
    exception ResponseCodeError(response, response_json=None, response_text=None)[source]ΒΆ
    -

    Bases: ValueError

    +

    Bases: ValueError

    Raised in APIClient.request() when a non-OK HTTP response is received.

    @@ -588,9 +596,9 @@
    Parameters:
      -
    • response (aiohttp.ClientResponse) – The response object from the request.

    • -
    • response_json (dict | None) – The JSON response returned from the request, if any.

    • -
    • response_text (str | None) – The text of the request, if any.

    • +
    • response (aiohttp.ClientResponse) – The response object from the request.

    • +
    • response_json (dict | None) – The JSON response returned from the request, if any.

    • +
    • response_text (str | None) – The text of the request, if any.

    @@ -691,7 +699,7 @@ - + diff --git a/v10.5.1/output/pydis_core.utils.caching.html b/v10.5.1/output/pydis_core.utils.caching.html index c0430827..10d04512 100644 --- a/v10.5.1/output/pydis_core.utils.caching.html +++ b/v10.5.1/output/pydis_core.utils.caching.html @@ -5,13 +5,13 @@ - + caching - Pydis Core v10.5.1 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -446,7 +454,7 @@
    class AsyncCache(max_size=128)[source]ΒΆ
    -

    Bases: object

    +

    Bases: object

    LRU cache implementation for coroutines.

    Once the cache exceeds the maximum size, keys are deleted in FIFO order.

    An offset may be optionally provided to be applied to the coroutine’s arguments when creating the cache key.

    @@ -456,10 +464,10 @@

    Decorator for async cache.

    Parameters:
    -

    arg_offset (int) – The offset for the position of the key argument.

    +

    arg_offset (int) – The offset for the position of the key argument.

    Return type:
    -

    Callable

    +

    Callable

    Returns:

    A decorator to wrap the target function.

    @@ -473,7 +481,7 @@

    Initialise a new AsyncCache instance.

    Parameters:
    -

    max_size (int) – How many items to store in the cache.

    +

    max_size (int) – How many items to store in the cache.

    @@ -484,7 +492,7 @@

    Clear cache instance.

    Return type:
    -

    None

    +

    None

    @@ -567,7 +575,7 @@ - + diff --git a/v10.5.1/output/pydis_core.utils.channel.html b/v10.5.1/output/pydis_core.utils.channel.html index fba38e3b..9644461b 100644 --- a/v10.5.1/output/pydis_core.utils.channel.html +++ b/v10.5.1/output/pydis_core.utils.channel.html @@ -5,13 +5,13 @@ - + channel - Pydis Core v10.5.1 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -451,7 +459,7 @@
    Parameters:
    • bot (Bot) – The discord.ext.commands.Bot instance to use for getting/fetching.

    • -
    • channel_id (int) – The channel to get/fetch.

    • +
    • channel_id (int) – The channel to get/fetch.

    Raises:
    @@ -479,11 +487,11 @@
    Parameters:
    • channel (TextChannel) – The channel to check.

    • -
    • category_id (int) – The category to check for.

    • +
    • category_id (int) – The category to check for.

    Return type:
    -

    bool

    +

    bool

    Returns:

    A bool depending on whether the channel is in the category.

    @@ -563,7 +571,7 @@ - + diff --git a/v10.5.1/output/pydis_core.utils.commands.html b/v10.5.1/output/pydis_core.utils.commands.html index 41629e3b..eb4a3bab 100644 --- a/v10.5.1/output/pydis_core.utils.commands.html +++ b/v10.5.1/output/pydis_core.utils.commands.html @@ -5,13 +5,13 @@ - + commands - Pydis Core v10.5.1 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -450,14 +458,14 @@
    Parameters:
    • ctx (Context) – The command’s context

    • -
    • text (str | None) – The provided text argument of the command (if given)

    • +
    • text (str | None) – The provided text argument of the command (if given)

    Raises:

    discord.ext.commands.BadArgument – text wasn’t provided and there’s no reply message / reply message content.

    Return type:
    -

    str

    +

    str

    Returns:

    The cleaned version of text, if given, else replied message.

    @@ -536,7 +544,7 @@ - + diff --git a/v10.5.1/output/pydis_core.utils.cooldown.html b/v10.5.1/output/pydis_core.utils.cooldown.html index 37c32c13..66ccde38 100644 --- a/v10.5.1/output/pydis_core.utils.cooldown.html +++ b/v10.5.1/output/pydis_core.utils.cooldown.html @@ -5,13 +5,13 @@ - + cooldown - Pydis Core v10.5.1 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -446,7 +454,7 @@
    exception CommandOnCooldown(message, function, /, *args, **kwargs)[source]ΒΆ
    -

    Bases: CommandError, Generic[P, R]

    +

    Bases: CommandError, Generic[P, R]

    Raised when a command is invoked while on cooldown.

    @@ -459,7 +467,7 @@

    Run the command this cooldown blocked.

    Return type:
    -

    TypeVar(R)

    +

    TypeVar(R)

    Returns:

    The command’s return value.

    @@ -489,14 +497,14 @@
    Parameters:
      -
    • cooldown_duration (float) – Length of the cooldown in seconds.

    • -
    • send_notice (bool) – If True, notify the user about the cooldown with a reply.

    • -
    • args_preprocessor (Callable[[ParamSpec(P)], Iterable[object]] | None) – If specified, this function is called with the args and kwargs the function is called with, +

    • cooldown_duration (float) – Length of the cooldown in seconds.

    • +
    • send_notice (bool) – If True, notify the user about the cooldown with a reply.

    • +
    • args_preprocessor (Callable[[ParamSpec(P)], Iterable[object]] | None) – If specified, this function is called with the args and kwargs the function is called with, its return value is then used to check for the cooldown instead of the raw arguments.

    Return type:
    -

    Callable[[Callable[[ParamSpec(P)], Awaitable[TypeVar(R)]]], Callable[[ParamSpec(P)], Awaitable[TypeVar(R)]]]

    +

    Callable[[Callable[[ParamSpec(P)], Awaitable[TypeVar(R)]]], Callable[[ParamSpec(P)], Awaitable[TypeVar(R)]]]

    Returns:

    A decorator that adds a wrapper which applies the cooldowns.

    @@ -586,7 +594,7 @@ its return value is then used to check for the cooldown instead of the raw argum - + diff --git a/v10.5.1/output/pydis_core.utils.error_handling.html b/v10.5.1/output/pydis_core.utils.error_handling.html index 2087143f..26f4a913 100644 --- a/v10.5.1/output/pydis_core.utils.error_handling.html +++ b/v10.5.1/output/pydis_core.utils.error_handling.html @@ -5,13 +5,13 @@ - + error_handling - Pydis Core v10.5.1 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -450,11 +458,11 @@
    Parameters:
    • error (Forbidden) – The raised discord.Forbidden to check.

    • -
    • message (Message | None) – The message to reply to and include in logs, if error is 90001 and message is provided.

    • +
    • message (Message | None) – The message to reply to and include in logs, if error is 90001 and message is provided.

    Return type:
    -

    None

    +

    None

    @@ -530,7 +538,7 @@ - + diff --git a/v10.5.1/output/pydis_core.utils.function.html b/v10.5.1/output/pydis_core.utils.function.html index ad6111f2..e6a7cefb 100644 --- a/v10.5.1/output/pydis_core.utils.function.html +++ b/v10.5.1/output/pydis_core.utils.function.html @@ -5,13 +5,13 @@ - + function - Pydis Core v10.5.1 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -446,7 +454,7 @@
    exception GlobalNameConflictError[source]ΒΆ
    -

    Bases: Exception

    +

    Bases: Exception

    Raised on a conflict between the globals used to resolve annotations of a wrapped function and its wrapper.

    @@ -458,17 +466,17 @@
    Parameters:
      -
    • wrapped (Callable[[ParamSpec(_P)], TypeVar(_R)]) – The function to wrap with.

    • -
    • assigned (Sequence[str]) – Sequence of attribute names that are directly assigned from wrapped to wrapper.

    • -
    • updated (Sequence[str]) – Sequence of attribute names that are .update``d on ``wrapper from the attributes on wrapped.

    • -
    • ignored_conflict_names (Set[str]) – A set of names to ignore if a conflict between them is found.

    • +
    • wrapped (Callable[[ParamSpec(_P)], TypeVar(_R)]) – The function to wrap with.

    • +
    • assigned (Sequence[str]) – Sequence of attribute names that are directly assigned from wrapped to wrapper.

    • +
    • updated (Sequence[str]) – Sequence of attribute names that are .update``d on ``wrapper from the attributes on wrapped.

    • +
    • ignored_conflict_names (Set[str]) – A set of names to ignore if a conflict between them is found.

    Return type:
    -

    Callable[[Callable[[ParamSpec(_P)], TypeVar(_R)]], Callable[[ParamSpec(_P)], TypeVar(_R)]]

    +

    Callable[[Callable[[ParamSpec(_P)], TypeVar(_R)]], Callable[[ParamSpec(_P)], TypeVar(_R)]]

    Returns:
    -

    A decorator that behaves like functools.wraps(), +

    A decorator that behaves like functools.wraps(), with the wrapper replaced with the function update_wrapper_globals() returned.

    @@ -489,9 +497,9 @@ changes won’t be reflected in the new function’s globals.

    Parameters:
    Raises:
    @@ -499,7 +507,7 @@ changes won’t be reflected in the new function’s globals.

    and is not in ignored_conflict_names.

    Return type:
    -

    Callable[[ParamSpec(_P)], TypeVar(_R)]

    +

    Callable[[ParamSpec(_P)], TypeVar(_R)]

    @@ -577,7 +585,7 @@ changes won’t be reflected in the new function’s globals.

    - + diff --git a/v10.5.1/output/pydis_core.utils.html b/v10.5.1/output/pydis_core.utils.html index 9907de61..e191a40f 100644 --- a/v10.5.1/output/pydis_core.utils.html +++ b/v10.5.1/output/pydis_core.utils.html @@ -5,13 +5,13 @@ - + Utils - Pydis Core v10.5.1 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -449,7 +457,7 @@

    Applies all common monkey patches for our bots.

    Return type:
    -

    None

    +

    None

    @@ -468,10 +476,10 @@ that will act as top-level groups rather than being aliases of the command’s g

    Return an unqualified name given a qualified module/package name.

    Parameters:
    -

    name (str) – The module name to unqualify.

    +

    name (str) – The module name to unqualify.

    Return type:
    -

    str

    +

    str

    Returns:

    The unqualified module name.

    @@ -557,10 +565,12 @@ that will act as top-level groups rather than being aliases of the command’s g
  • PasteFile.__class_vars__
  • PasteFile.__private_attributes__
  • PasteFile.__pydantic_complete__
  • +
  • PasteFile.__pydantic_computed_fields__
  • PasteFile.__pydantic_core_schema__
  • PasteFile.__pydantic_custom_init__
  • PasteFile.__pydantic_decorators__
  • PasteFile.__pydantic_extra__
  • +
  • PasteFile.__pydantic_fields__
  • PasteFile.__pydantic_fields_set__
  • PasteFile.__pydantic_generic_metadata__
  • PasteFile.__pydantic_parent_namespace__
  • @@ -569,19 +579,19 @@ that will act as top-level groups rather than being aliases of the command’s g
  • PasteFile.__pydantic_serializer__
  • PasteFile.__pydantic_validator__
  • PasteFile.__signature__
  • -
  • PasteFile.model_computed_fields
  • PasteFile.model_config
  • -
  • PasteFile.model_fields
  • PasteResponse
  • PasteTooLongError
  • @@ -697,7 +705,7 @@ that will act as top-level groups rather than being aliases of the command’s g - + diff --git a/v10.5.1/output/pydis_core.utils.interactions.html b/v10.5.1/output/pydis_core.utils.interactions.html index b6d2d52a..ca809926 100644 --- a/v10.5.1/output/pydis_core.utils.interactions.html +++ b/v10.5.1/output/pydis_core.utils.interactions.html @@ -5,13 +5,13 @@ - + interactions - Pydis Core v10.5.1 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -453,7 +461,7 @@
    Parameters:
    • style (ButtonStyle) – The style of the button, set to ButtonStyle.secondary if not specified.

    • -
    • label (str) – The label of the button, set to β€œDelete” if not specified.

    • +
    • label (str) – The label of the button, set to β€œDelete” if not specified.

    @@ -468,7 +476,7 @@

    Delete the original message on button click.

    Return type:
    -

    None

    +

    None

    @@ -483,11 +491,11 @@
    Parameters:
      -
    • allowed_users (Sequence[int]) – A sequence of user’s ids who are allowed to interact with the view.

    • -
    • allowed_roles (Sequence[int]) – A sequence of role ids that are allowed to interact with the view.

    • -
    • timeout (float | None) – Timeout in seconds from last interaction with the UI before no longer accepting input. +

    • allowed_users (Sequence[int]) – A sequence of user’s ids who are allowed to interact with the view.

    • +
    • allowed_roles (Sequence[int]) – A sequence of role ids that are allowed to interact with the view.

    • +
    • timeout (float | None) – Timeout in seconds from last interaction with the UI before no longer accepting input. If None then there is no timeout.

    • -
    • message (Message | None) – The message to remove the view from on timeout. This can also be set with +

    • message (Message | None) – The message to remove the view from on timeout. This can also be set with view.message = await ctx.send( ... )` , or similar, after the view is instantiated.

    @@ -506,7 +514,7 @@ If None

    interaction (Interaction) – The interaction that occurred.

    Return type:
    -

    bool

    +

    bool

    @@ -517,7 +525,7 @@ If None

    Remove the view from self.message if set.

    Return type:
    -

    None

    +

    None

    @@ -528,7 +536,7 @@ If None

    Stop listening for interactions, and remove the view from self.message if set.

    Return type:
    -

    None

    +

    None

    @@ -617,7 +625,7 @@ If None - + diff --git a/v10.5.1/output/pydis_core.utils.logging.html b/v10.5.1/output/pydis_core.utils.logging.html index 9c40c945..1bc1f5f4 100644 --- a/v10.5.1/output/pydis_core.utils.logging.html +++ b/v10.5.1/output/pydis_core.utils.logging.html @@ -5,13 +5,13 @@ - + logging - Pydis Core v10.5.1 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -446,8 +454,8 @@
    class CustomLogger(name, level=0)[source]ΒΆ
    -

    Bases: Logger

    -

    Custom implementation of the logging.Logger class with an added trace method.

    +

    Bases: Logger

    +

    Custom implementation of the logging.Logger class with an added trace method.

    trace(msg, *args, **kwargs)[source]ΒΆ
    @@ -459,13 +467,13 @@
    Parameters:
      -
    • msg (str) – The message to be logged.

    • +
    • msg (str) – The message to be logged.

    • args – Passed to the base log function as is.

    • kwargs – Passed to the base log function as is.

    Return type:
    -

    None

    +

    None

    @@ -478,7 +486,7 @@

    Utility to make mypy recognise that logger is of type CustomLogger.

    Parameters:
    -

    name (str | None) – The name given to the logger.

    +

    name (str | None) – The name given to the logger.

    Return type:

    CustomLogger

    @@ -492,7 +500,7 @@
    log_format[source]ΒΆ
    -

    A logging.Formatter that can be used to standardise logging across all projects using pydis_core.

    +

    A logging.Formatter that can be used to standardise logging across all projects using pydis_core.

    @@ -573,7 +581,7 @@ - + diff --git a/v10.5.1/output/pydis_core.utils.members.html b/v10.5.1/output/pydis_core.utils.members.html index d36ce736..58e4a367 100644 --- a/v10.5.1/output/pydis_core.utils.members.html +++ b/v10.5.1/output/pydis_core.utils.members.html @@ -5,13 +5,13 @@ - + members - Pydis Core v10.5.1 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -449,10 +457,10 @@

    Attempt to get a member from cache; on failure fetch from the API.

    Return type:
    -

    Member | None

    +

    Member | None

    Returns:
    -

    The discord.Member or None to indicate the member could not be found.

    +

    The discord.Member or None to indicate the member could not be found.

    @@ -467,12 +475,12 @@
    Parameters:
    Return type:
    -

    None

    +

    None

    @@ -549,7 +557,7 @@ - + diff --git a/v10.5.1/output/pydis_core.utils.paste_service.html b/v10.5.1/output/pydis_core.utils.paste_service.html index b3f7be1a..d7d3c09f 100644 --- a/v10.5.1/output/pydis_core.utils.paste_service.html +++ b/v10.5.1/output/pydis_core.utils.paste_service.html @@ -5,13 +5,13 @@ - + paste_service - Pydis Core v10.5.1 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -456,9 +464,9 @@
    Parameters:
      -
    • content (str) – The content of the file.

    • -
    • name (str) – The name of the file to upload. Defaults to ""

    • -
    • lexer (str) – The lexer to use when applying text formatting. Defaults to "python"

    • +
    • content (str) – The content of the file.

    • +
    • name (str) – The name of the file to upload. Defaults to ""

    • +
    • lexer (str) – The lexer to use when applying text formatting. Defaults to "python"

    @@ -480,9 +488,15 @@

    Whether model building is completed, or if there are still undefined fields.

    +
    +
    +__pydantic_computed_fields__: ClassVar[Dict[str, ComputedFieldInfo]] = {}ΒΆ
    +

    A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.

    +
    +
    -__pydantic_core_schema__: ClassVar[CoreSchema] = {'cls': <class 'pydis_core.utils.paste_service.PasteFile'>, 'config': {'title': 'PasteFile'}, 'custom_init': False, 'metadata': {'pydantic_js_annotation_functions': [], 'pydantic_js_functions': [functools.partial(<function modify_model_json_schema>, cls=<class 'pydis_core.utils.paste_service.PasteFile'>, title=None), <bound method BaseModel.__get_pydantic_json_schema__ of <class 'pydis_core.utils.paste_service.PasteFile'>>]}, 'ref': 'pydis_core.utils.paste_service.PasteFile:93874817678976', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'content': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 'lexer': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': 'python', 'schema': {'type': 'str'}, 'type': 'default'}, 'type': 'model-field'}, 'name': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': '', 'schema': {'type': 'str'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'PasteFile', 'type': 'model-fields'}, 'type': 'model'}ΒΆ
    +__pydantic_core_schema__: ClassVar[CoreSchema] = {'cls': <class 'pydis_core.utils.paste_service.PasteFile'>, 'config': {'title': 'PasteFile'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'pydis_core.utils.paste_service.PasteFile'>>]}, 'ref': 'pydis_core.utils.paste_service.PasteFile:93966960492432', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'content': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 'lexer': {'metadata': {}, 'schema': {'default': 'python', 'schema': {'type': 'str'}, 'type': 'default'}, 'type': 'model-field'}, 'name': {'metadata': {}, 'schema': {'default': '', 'schema': {'type': 'str'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'PasteFile', 'type': 'model-fields'}, 'type': 'model'}ΒΆ

    The core schema of the model.

    @@ -505,6 +519,13 @@ This replaces Model.__validators__ and Model.__root_validator

    A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to β€˜allow’.

    +
    +
    +__pydantic_fields__: ClassVar[Dict[str, FieldInfo]] = {'content': FieldInfo(annotation=str, required=True), 'lexer': FieldInfo(annotation=str, required=False, default='python'), 'name': FieldInfo(annotation=str, required=False, default='')}ΒΆ
    +

    A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects. +This replaces Model.__fields__ from Pydantic V1.

    +
    +
    __pydantic_fields_set__: set[str]ΒΆ
    @@ -538,13 +559,13 @@ __args__, __origin__, __parameters__ in typing-module generics. May eventually b
    -__pydantic_serializer__: ClassVar[SchemaSerializer] = SchemaSerializer(serializer=Model(     ModelSerializer {         class: Py(             0x00005560ef293e80,         ),         serializer: Fields(             GeneralFieldsSerializer {                 fields: {                     "content": SerField {                         key_py: Py(                             0x00007f4c676679f0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             Str(                                 StrSerializer,                             ),                         ),                         required: true,                     },                     "lexer": SerField {                         key_py: Py(                             0x00007f4c67388130,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f4c670f4270,                                         ),                                     ),                                     serializer: Str(                                         StrSerializer,                                     ),                                 },                             ),                         ),                         required: true,                     },                     "name": SerField {                         key_py: Py(                             0x00007f4c68556ea0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f4c685530c0,                                         ),                                     ),                                     serializer: Str(                                         StrSerializer,                                     ),                                 },                             ),                         ),                         required: true,                     },                 },                 computed_fields: Some(                     ComputedFields(                         [],                     ),                 ),                 mode: SimpleDict,                 extra_serializer: None,                 filter: SchemaFilter {                     include: None,                     exclude: None,                 },                 required_fields: 3,             },         ),         has_extra: false,         root_model: false,         name: "PasteFile",     }, ), definitions=[])ΒΆ
    +__pydantic_serializer__: ClassVar[SchemaSerializer] = SchemaSerializer(serializer=Model(     ModelSerializer {         class: Py(             0x00005576634cff90,         ),         serializer: Fields(             GeneralFieldsSerializer {                 fields: {                     "name": SerField {                         key_py: Py(                             0x00007f3ca5756ea0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f3ca57530c0,                                         ),                                     ),                                     serializer: Str(                                         StrSerializer,                                     ),                                 },                             ),                         ),                         required: true,                     },                     "content": SerField {                         key_py: Py(                             0x00007f3ca49679b0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             Str(                                 StrSerializer,                             ),                         ),                         required: true,                     },                     "lexer": SerField {                         key_py: Py(                             0x00007f3ca46a4e70,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f3ca4409030,                                         ),                                     ),                                     serializer: Str(                                         StrSerializer,                                     ),                                 },                             ),                         ),                         required: true,                     },                 },                 computed_fields: Some(                     ComputedFields(                         [],                     ),                 ),                 mode: SimpleDict,                 extra_serializer: None,                 filter: SchemaFilter {                     include: None,                     exclude: None,                 },                 required_fields: 3,             },         ),         has_extra: false,         root_model: false,         name: "PasteFile",     }, ), definitions=[])ΒΆ

    The pydantic-core SchemaSerializer used to dump instances of the model.

    -__pydantic_validator__: ClassVar[SchemaValidator | PluggableSchemaValidator] = SchemaValidator(title="PasteFile", validator=Model(     ModelValidator {         revalidate: Never,         validator: ModelFields(             ModelFieldsValidator {                 fields: [                     Field {                         name: "content",                         lookup_key: Simple {                             key: "content",                             py_key: Py(                                 0x00007f4c615c7bf0,                             ),                             path: LookupPath(                                 [                                     S(                                         "content",                                         Py(                                             0x00007f4c615c7cf0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f4c676679f0,                         ),                         validator: Str(                             StrValidator {                                 strict: false,                                 coerce_numbers_to_str: false,                             },                         ),                         frozen: false,                     },                     Field {                         name: "name",                         lookup_key: Simple {                             key: "name",                             py_key: Py(                                 0x00007f4c615c7bb0,                             ),                             path: LookupPath(                                 [                                     S(                                         "name",                                         Py(                                             0x00007f4c615c7b30,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f4c68556ea0,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007f4c685530c0,                                     ),                                 ),                                 on_error: Raise,                                 validator: Str(                                     StrValidator {                                         strict: false,                                         coerce_numbers_to_str: false,                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[str]",                                 undefined: Py(                                     0x00007f4c662e6470,                                 ),                             },                         ),                         frozen: false,                     },                     Field {                         name: "lexer",                         lookup_key: Simple {                             key: "lexer",                             py_key: Py(                                 0x00007f4c615c7af0,                             ),                             path: LookupPath(                                 [                                     S(                                         "lexer",                                         Py(                                             0x00007f4c615c7a30,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f4c67388130,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007f4c670f4270,                                     ),                                 ),                                 on_error: Raise,                                 validator: Str(                                     StrValidator {                                         strict: false,                                         coerce_numbers_to_str: false,                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[str]",                                 undefined: Py(                                     0x00007f4c662e6470,                                 ),                             },                         ),                         frozen: false,                     },                 ],                 model_name: "PasteFile",                 extra_behavior: Ignore,                 extras_validator: None,                 strict: false,                 from_attributes: false,                 loc_by_alias: true,             },         ),         class: Py(             0x00005560ef293e80,         ),         post_init: None,         frozen: false,         custom_init: false,         root_model: false,         undefined: Py(             0x00007f4c662e6470,         ),         name: "PasteFile",     }, ), definitions=[], cache_strings=True)ΒΆ
    +__pydantic_validator__: ClassVar[SchemaValidator | PluggableSchemaValidator] = SchemaValidator(title="PasteFile", validator=Model(     ModelValidator {         revalidate: Never,         validator: ModelFields(             ModelFieldsValidator {                 fields: [                     Field {                         name: "content",                         lookup_key: Simple {                             key: "content",                             py_key: Py(                                 0x00007f3c9a144c70,                             ),                             path: LookupPath(                                 [                                     S(                                         "content",                                         Py(                                             0x00007f3c9a144f70,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f3ca49679b0,                         ),                         validator: Str(                             StrValidator {                                 strict: false,                                 coerce_numbers_to_str: false,                             },                         ),                         frozen: false,                     },                     Field {                         name: "name",                         lookup_key: Simple {                             key: "name",                             py_key: Py(                                 0x00007f3c9a144cf0,                             ),                             path: LookupPath(                                 [                                     S(                                         "name",                                         Py(                                             0x00007f3c9a144ef0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f3ca5756ea0,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007f3ca57530c0,                                     ),                                 ),                                 on_error: Raise,                                 validator: Str(                                     StrValidator {                                         strict: false,                                         coerce_numbers_to_str: false,                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[str]",                                 undefined: Py(                                     0x00007f3ca35fa3c0,                                 ),                             },                         ),                         frozen: false,                     },                     Field {                         name: "lexer",                         lookup_key: Simple {                             key: "lexer",                             py_key: Py(                                 0x00007f3c9a144db0,                             ),                             path: LookupPath(                                 [                                     S(                                         "lexer",                                         Py(                                             0x00007f3c9a144af0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f3ca46a4e70,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007f3ca4409030,                                     ),                                 ),                                 on_error: Raise,                                 validator: Str(                                     StrValidator {                                         strict: false,                                         coerce_numbers_to_str: false,                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[str]",                                 undefined: Py(                                     0x00007f3ca35fa3c0,                                 ),                             },                         ),                         frozen: false,                     },                 ],                 model_name: "PasteFile",                 extra_behavior: Ignore,                 extras_validator: None,                 strict: false,                 from_attributes: false,                 loc_by_alias: true,             },         ),         class: Py(             0x00005576634cff90,         ),         generic_origin: None,         post_init: None,         frozen: false,         custom_init: false,         root_model: false,         undefined: Py(             0x00007f3ca35fa3c0,         ),         name: "PasteFile",     }, ), definitions=[], cache_strings=True)ΒΆ

    The pydantic-core SchemaValidator used to validate instances of the model.

    @@ -554,26 +575,12 @@ __args__, __origin__, __parameters__ in typing-module generics. May eventually b

    The synthesized __init__ [Signature][inspect.Signature] of the model.

    -
    -
    -model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}ΒΆ
    -

    A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

    -
    -
    model_config: ClassVar[ConfigDict] = {}ΒΆ

    Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

    -
    -
    -model_fields: ClassVar[Dict[str, FieldInfo]] = {'content': FieldInfo(annotation=str, required=True), 'lexer': FieldInfo(annotation=str, required=False, default='python'), 'name': FieldInfo(annotation=str, required=False, default='')}ΒΆ
    -

    Metadata about the fields defined on the model, -mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

    -

    This replaces Model.__fields__ from Pydantic V1.

    -
    -
    @@ -584,8 +591,8 @@ mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] ob
    Parameters:
      -
    • link (str) – The URL to the saved paste.

    • -
    • removal (str) – The URL to delete the saved paste.

    • +
    • link (str) – The URL to the saved paste.

    • +
    • removal (str) – The URL to delete the saved paste.

    @@ -607,9 +614,15 @@ mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] ob

    Whether model building is completed, or if there are still undefined fields.

    +
    +
    +__pydantic_computed_fields__: ClassVar[Dict[str, ComputedFieldInfo]] = {}ΒΆ
    +

    A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.

    +
    +
    -__pydantic_core_schema__: ClassVar[CoreSchema] = {'cls': <class 'pydis_core.utils.paste_service.PasteResponse'>, 'config': {'title': 'PasteResponse'}, 'custom_init': False, 'metadata': {'pydantic_js_annotation_functions': [], 'pydantic_js_functions': [functools.partial(<function modify_model_json_schema>, cls=<class 'pydis_core.utils.paste_service.PasteResponse'>, title=None), <bound method BaseModel.__get_pydantic_json_schema__ of <class 'pydis_core.utils.paste_service.PasteResponse'>>]}, 'ref': 'pydis_core.utils.paste_service.PasteResponse:93874817562352', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'link': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 'removal': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'type': 'str'}, 'type': 'model-field'}}, 'model_name': 'PasteResponse', 'type': 'model-fields'}, 'type': 'model'}ΒΆ
    +__pydantic_core_schema__: ClassVar[CoreSchema] = {'cls': <class 'pydis_core.utils.paste_service.PasteResponse'>, 'config': {'title': 'PasteResponse'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'pydis_core.utils.paste_service.PasteResponse'>>]}, 'ref': 'pydis_core.utils.paste_service.PasteResponse:93966960347280', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'link': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 'removal': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}}, 'model_name': 'PasteResponse', 'type': 'model-fields'}, 'type': 'model'}ΒΆ

    The core schema of the model.

    @@ -632,6 +645,13 @@ This replaces Model.__validators__ and Model.__root_validator

    A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to β€˜allow’.

    +
    +
    +__pydantic_fields__: ClassVar[Dict[str, FieldInfo]] = {'link': FieldInfo(annotation=str, required=True), 'removal': FieldInfo(annotation=str, required=True)}ΒΆ
    +

    A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects. +This replaces Model.__fields__ from Pydantic V1.

    +
    +
    __pydantic_fields_set__: set[str]ΒΆ
    @@ -665,13 +685,13 @@ __args__, __origin__, __parameters__ in typing-module generics. May eventually b
    -__pydantic_serializer__: ClassVar[SchemaSerializer] = SchemaSerializer(serializer=Model(     ModelSerializer {         class: Py(             0x00005560ef2776f0,         ),         serializer: Fields(             GeneralFieldsSerializer {                 fields: {                     "link": SerField {                         key_py: Py(                             0x00007f4c684ac2a0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             Str(                                 StrSerializer,                             ),                         ),                         required: true,                     },                     "removal": SerField {                         key_py: Py(                             0x00007f4c62088870,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             Str(                                 StrSerializer,                             ),                         ),                         required: true,                     },                 },                 computed_fields: Some(                     ComputedFields(                         [],                     ),                 ),                 mode: SimpleDict,                 extra_serializer: None,                 filter: SchemaFilter {                     include: None,                     exclude: None,                 },                 required_fields: 2,             },         ),         has_extra: false,         root_model: false,         name: "PasteResponse",     }, ), definitions=[])ΒΆ
    +__pydantic_serializer__: ClassVar[SchemaSerializer] = SchemaSerializer(serializer=Model(     ModelSerializer {         class: Py(             0x00005576634ac890,         ),         serializer: Fields(             GeneralFieldsSerializer {                 fields: {                     "removal": SerField {                         key_py: Py(                             0x00007f3c9abe79b0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             Str(                                 StrSerializer,                             ),                         ),                         required: true,                     },                     "link": SerField {                         key_py: Py(                             0x00007f3ca56ac2a0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             Str(                                 StrSerializer,                             ),                         ),                         required: true,                     },                 },                 computed_fields: Some(                     ComputedFields(                         [],                     ),                 ),                 mode: SimpleDict,                 extra_serializer: None,                 filter: SchemaFilter {                     include: None,                     exclude: None,                 },                 required_fields: 2,             },         ),         has_extra: false,         root_model: false,         name: "PasteResponse",     }, ), definitions=[])ΒΆ

    The pydantic-core SchemaSerializer used to dump instances of the model.

    -__pydantic_validator__: ClassVar[SchemaValidator | PluggableSchemaValidator] = SchemaValidator(title="PasteResponse", validator=Model(     ModelValidator {         revalidate: Never,         validator: ModelFields(             ModelFieldsValidator {                 fields: [                     Field {                         name: "link",                         lookup_key: Simple {                             key: "link",                             py_key: Py(                                 0x00007f4c600b0030,                             ),                             path: LookupPath(                                 [                                     S(                                         "link",                                         Py(                                             0x00007f4c615cbbf0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f4c684ac2a0,                         ),                         validator: Str(                             StrValidator {                                 strict: false,                                 coerce_numbers_to_str: false,                             },                         ),                         frozen: false,                     },                     Field {                         name: "removal",                         lookup_key: Simple {                             key: "removal",                             py_key: Py(                                 0x00007f4c615c8730,                             ),                             path: LookupPath(                                 [                                     S(                                         "removal",                                         Py(                                             0x00007f4c615c93b0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f4c62088870,                         ),                         validator: Str(                             StrValidator {                                 strict: false,                                 coerce_numbers_to_str: false,                             },                         ),                         frozen: false,                     },                 ],                 model_name: "PasteResponse",                 extra_behavior: Ignore,                 extras_validator: None,                 strict: false,                 from_attributes: false,                 loc_by_alias: true,             },         ),         class: Py(             0x00005560ef2776f0,         ),         post_init: None,         frozen: false,         custom_init: false,         root_model: false,         undefined: Py(             0x00007f4c662e6470,         ),         name: "PasteResponse",     }, ), definitions=[], cache_strings=True)ΒΆ
    +__pydantic_validator__: ClassVar[SchemaValidator | PluggableSchemaValidator] = SchemaValidator(title="PasteResponse", validator=Model(     ModelValidator {         revalidate: Never,         validator: ModelFields(             ModelFieldsValidator {                 fields: [                     Field {                         name: "link",                         lookup_key: Simple {                             key: "link",                             py_key: Py(                                 0x00007f3ca1d7f970,                             ),                             path: LookupPath(                                 [                                     S(                                         "link",                                         Py(                                             0x00007f3ca1d053f0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f3ca56ac2a0,                         ),                         validator: Str(                             StrValidator {                                 strict: false,                                 coerce_numbers_to_str: false,                             },                         ),                         frozen: false,                     },                     Field {                         name: "removal",                         lookup_key: Simple {                             key: "removal",                             py_key: Py(                                 0x00007f3c9a34c630,                             ),                             path: LookupPath(                                 [                                     S(                                         "removal",                                         Py(                                             0x00007f3ca016e730,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f3c9abe79b0,                         ),                         validator: Str(                             StrValidator {                                 strict: false,                                 coerce_numbers_to_str: false,                             },                         ),                         frozen: false,                     },                 ],                 model_name: "PasteResponse",                 extra_behavior: Ignore,                 extras_validator: None,                 strict: false,                 from_attributes: false,                 loc_by_alias: true,             },         ),         class: Py(             0x00005576634ac890,         ),         generic_origin: None,         post_init: None,         frozen: false,         custom_init: false,         root_model: false,         undefined: Py(             0x00007f3ca35fa3c0,         ),         name: "PasteResponse",     }, ), definitions=[], cache_strings=True)ΒΆ

    The pydantic-core SchemaValidator used to validate instances of the model.

    @@ -681,46 +701,32 @@ __args__, __origin__, __parameters__ in typing-module generics. May eventually b

    The synthesized __init__ [Signature][inspect.Signature] of the model.

    -
    -
    -model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}ΒΆ
    -

    A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

    -
    -
    model_config: ClassVar[ConfigDict] = {}ΒΆ

    Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

    -
    -
    -model_fields: ClassVar[Dict[str, FieldInfo]] = {'link': FieldInfo(annotation=str, required=True), 'removal': FieldInfo(annotation=str, required=True)}ΒΆ
    -

    Metadata about the fields defined on the model, -mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

    -

    This replaces Model.__fields__ from Pydantic V1.

    -
    -
    exception PasteTooLongError[source]ΒΆ
    -

    Bases: Exception

    +

    Bases: Exception

    Raised when content is too large to upload to the paste service.

    exception PasteUnsupportedLexerError[source]ΒΆ
    -

    Bases: Exception

    +

    Bases: Exception

    Raised when an unsupported lexer is used.

    exception PasteUploadError[source]ΒΆ
    -

    Bases: Exception

    +

    Bases: Exception

    Raised when an error is encountered uploading to the paste service.

    @@ -731,15 +737,15 @@ mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] ob
    Parameters:
      -
    • files (list[PasteFile]) – The files to be uploaded to the paste service.

    • -
    • http_session (aiohttp.ClientSession) – The session to use when POSTing the content to the paste service.

    • -
    • paste_url (str) – The base url to the paste service.

    • -
    • max_size (int) – The max number of bytes to be allowed. Anything larger than MAX_PASTE_SIZE will be rejected.

    • +
    • files (list[PasteFile]) – The files to be uploaded to the paste service.

    • +
    • http_session (aiohttp.ClientSession) – The session to use when POSTing the content to the paste service.

    • +
    • paste_url (str) – The base url to the paste service.

    • +
    • max_size (int) – The max number of bytes to be allowed. Anything larger than MAX_PASTE_SIZE will be rejected.

    Raises:
      -
    • ValueError – max_length greater than the maximum allowed by the paste service.

    • +
    • ValueError – max_length greater than the maximum allowed by the paste service.

    • PasteTooLongError – contents too long to upload.

    • PasteUploadError – Uploading failed.

    @@ -816,10 +822,12 @@ mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] ob
  • PasteFile.__class_vars__
  • PasteFile.__private_attributes__
  • PasteFile.__pydantic_complete__
  • +
  • PasteFile.__pydantic_computed_fields__
  • PasteFile.__pydantic_core_schema__
  • PasteFile.__pydantic_custom_init__
  • PasteFile.__pydantic_decorators__
  • PasteFile.__pydantic_extra__
  • +
  • PasteFile.__pydantic_fields__
  • PasteFile.__pydantic_fields_set__
  • PasteFile.__pydantic_generic_metadata__
  • PasteFile.__pydantic_parent_namespace__
  • @@ -828,19 +836,19 @@ mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] ob
  • PasteFile.__pydantic_serializer__
  • PasteFile.__pydantic_validator__
  • PasteFile.__signature__
  • -
  • PasteFile.model_computed_fields
  • PasteFile.model_config
  • -
  • PasteFile.model_fields
  • PasteResponse
  • PasteTooLongError
  • @@ -870,7 +876,7 @@ mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] ob - + diff --git a/v10.5.1/output/pydis_core.utils.regex.html b/v10.5.1/output/pydis_core.utils.regex.html index 471dd1cf..31a2ce95 100644 --- a/v10.5.1/output/pydis_core.utils.regex.html +++ b/v10.5.1/output/pydis_core.utils.regex.html @@ -5,13 +5,13 @@ - + regex - Pydis Core v10.5.1 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -451,7 +459,7 @@

    Warning

    This regex pattern will capture until a whitespace, if you are to use the β€˜invite’ capture group in any HTTP requests or similar. Please ensure you sanitise the output using something -such as urllib.parse.quote().

    +such as urllib.parse.quote().

    @@ -546,7 +554,7 @@ such as - + diff --git a/v10.5.1/output/pydis_core.utils.scheduling.html b/v10.5.1/output/pydis_core.utils.scheduling.html index a0e31bc1..83a4443c 100644 --- a/v10.5.1/output/pydis_core.utils.scheduling.html +++ b/v10.5.1/output/pydis_core.utils.scheduling.html @@ -5,13 +5,13 @@ - + scheduling - Pydis Core v10.5.1 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -446,7 +454,7 @@
    class Scheduler(name)[source]ΒΆ
    -

    Bases: object

    +

    Bases: object

    Schedule the execution of coroutines and keep track of them.

    When instantiating a Scheduler, a name must be provided. This name is used to distinguish the instance’s log messages from other instances. Using the name of the class or module containing @@ -460,16 +468,16 @@ the same ID used to schedule it.

    __contains__(task_id)[source]ΒΆ
    -

    Return True if a task with the given task_id is currently scheduled.

    +

    Return True if a task with the given task_id is currently scheduled.

    Parameters:
    -

    task_id (Hashable) – The task to look for.

    +

    task_id (Hashable) – The task to look for.

    Return type:
    -

    bool

    +

    bool

    Returns:
    -

    True if the task was found.

    +

    True if the task was found.

    @@ -480,7 +488,7 @@ the same ID used to schedule it.

    Initialize a new Scheduler instance.

    Parameters:
    -

    name (str) – The name of the Scheduler. Used in logging, and namespacing.

    +

    name (str) – The name of the Scheduler. Used in logging, and namespacing.

    @@ -491,10 +499,10 @@ the same ID used to schedule it.

    Unschedule the task identified by task_id. Log a warning if the task doesn’t exist.

    Parameters:
    -

    task_id (Hashable) – The task’s unique ID.

    +

    task_id (Hashable) – The task’s unique ID.

    Return type:
    -

    None

    +

    None

    @@ -505,7 +513,7 @@ the same ID used to schedule it.

    Unschedule all known tasks.

    Return type:
    -

    None

    +

    None

    @@ -519,12 +527,12 @@ prevents unawaited coroutine warnings. Don’t pass a coroutine that’ll be re-
    Parameters:
      -
    • task_id (Hashable) – A unique ID to create the task with.

    • -
    • coroutine (Coroutine) – The function to be called.

    • +
    • task_id (Hashable) – A unique ID to create the task with.

    • +
    • coroutine (Coroutine) – The function to be called.

    Return type:
    -

    None

    +

    None

    @@ -541,13 +549,13 @@ prevents unawaited coroutine warnings. Don’t pass a coroutine that’ll be re-
    Parameters:
      -
    • time (datetime) – The time to start the task.

    • -
    • task_id (Hashable) – A unique ID to create the task with.

    • -
    • coroutine (Coroutine) – The function to be called.

    • +
    • time (datetime) – The time to start the task.

    • +
    • task_id (Hashable) – A unique ID to create the task with.

    • +
    • coroutine (Coroutine) – The function to be called.

    Return type:
    -

    None

    +

    None

    @@ -561,13 +569,13 @@ prevents unawaited coroutine warnings. Don’t pass a coroutine that’ll be re-
    Parameters:
      -
    • delay (int | float) – How long to wait before starting the task.

    • -
    • task_id (Hashable) – A unique ID to create the task with.

    • -
    • coroutine (Coroutine) – The function to be called.

    • +
    • delay (int | float) – How long to wait before starting the task.

    • +
    • task_id (Hashable) – A unique ID to create the task with.

    • +
    • coroutine (Coroutine) – The function to be called.

    Return type:
    -

    None

    +

    None

    @@ -577,23 +585,23 @@ prevents unawaited coroutine warnings. Don’t pass a coroutine that’ll be re-
    create_task(coro, *, suppressed_exceptions=(), event_loop=None, **kwargs)[source]ΒΆ
    -

    Wrapper for creating an asyncio.Task which logs exceptions raised in the task.

    +

    Wrapper for creating an asyncio.Task which logs exceptions raised in the task.

    If the event_loop kwarg is provided, the task is created from that event loop, otherwise the running loop is used.

    Parameters:
    Returns:

    The wrapped task.

    Return type:
    -

    asyncio.Task

    +

    asyncio.Task

    @@ -679,7 +687,7 @@ otherwise the running loop is used.

    - + -- cgit v1.2.3