aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_core/utils/logging.py
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2023-06-04 20:34:14 +0100
committerGravatar GitHub <[email protected]>2023-06-04 20:34:14 +0100
commit1a362c04eb4d5d8f3c531a590d73cf5d7300ace8 (patch)
treeaccbe4d840b036dcc9502eed395f19400f5ad9a3 /pydis_core/utils/logging.py
parentMerge pull request #175 from python-discord/log-when-waiting-for-guild-to-be-... (diff)
parentAdd changelog entry for ruff migration (diff)
Merge pull request #176 from python-discord/ruff-migration
Ruff migration
Diffstat (limited to 'pydis_core/utils/logging.py')
-rw-r--r--pydis_core/utils/logging.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_core/utils/logging.py b/pydis_core/utils/logging.py
index 7814f348..ecccb91a 100644
--- a/pydis_core/utils/logging.py
+++ b/pydis_core/utils/logging.py
@@ -32,7 +32,7 @@ class CustomLogger(LoggerClass):
self.log(TRACE_LEVEL, msg, *args, **kwargs)
-def get_logger(name: typing.Optional[str] = None) -> CustomLogger:
+def get_logger(name: str | None = None) -> CustomLogger:
"""
Utility to make mypy recognise that logger is of type :obj:`CustomLogger`.