mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
fix some deprecation warnings (#3610)
This commit is contained in:
parent
d4e982faea
commit
582f64b2e7
@ -230,5 +230,5 @@ extlinks = {"dpy_docs": (f"https://discordpy.readthedocs.io/en/v{dpy_version}/%s
|
|||||||
doctest_test_doctest_blocks = ""
|
doctest_test_doctest_blocks = ""
|
||||||
|
|
||||||
# Autodoc options
|
# Autodoc options
|
||||||
autodoc_default_flags = ["show-inheritance"]
|
autodoc_default_options = {"show-inheritance": True}
|
||||||
autodoc_typehints = "none"
|
autodoc_typehints = "none"
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import collections
|
import collections.abc
|
||||||
import logging
|
import logging
|
||||||
import pickle
|
import pickle
|
||||||
import weakref
|
import weakref
|
||||||
@ -510,7 +510,7 @@ class Group(Value):
|
|||||||
return self(acquire_lock=acquire_lock)
|
return self(acquire_lock=acquire_lock)
|
||||||
|
|
||||||
def nested_update(
|
def nested_update(
|
||||||
self, current: collections.Mapping, defaults: Dict[str, Any] = ...
|
self, current: collections.abc.Mapping, defaults: Dict[str, Any] = ...
|
||||||
) -> Dict[str, Any]:
|
) -> Dict[str, Any]:
|
||||||
"""Robust updater for nested dictionaries
|
"""Robust updater for nested dictionaries
|
||||||
|
|
||||||
@ -521,7 +521,7 @@ class Group(Value):
|
|||||||
defaults = self.defaults
|
defaults = self.defaults
|
||||||
|
|
||||||
for key, value in current.items():
|
for key, value in current.items():
|
||||||
if isinstance(value, collections.Mapping):
|
if isinstance(value, collections.abc.Mapping):
|
||||||
result = self.nested_update(value, defaults.get(key, {}))
|
result = self.nested_update(value, defaults.get(key, {}))
|
||||||
defaults[key] = result
|
defaults[key] = result
|
||||||
else:
|
else:
|
||||||
|
|||||||
@ -22,7 +22,7 @@ from .utils.chat_formatting import inline, bordered, format_perms_list, humanize
|
|||||||
log = logging.getLogger("red")
|
log = logging.getLogger("red")
|
||||||
init()
|
init()
|
||||||
|
|
||||||
INTRO = """
|
INTRO = r"""
|
||||||
______ _ ______ _ _ ______ _
|
______ _ ______ _ _ ______ _
|
||||||
| ___ \ | | | _ (_) | | | ___ \ | |
|
| ___ \ | | | _ (_) | | | ___ \ | |
|
||||||
| |_/ /___ __| | ______ | | | |_ ___ ___ ___ _ __ __| | | |_/ / ___ | |_
|
| |_/ /___ __| | ______ | | | |_ ___ ___ ___ _ __ __| | | |_/ / ___ | |_
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user