Browse Source
feat(fix): fix comment about inspect replacing inspect
pull/10440/head
Mikey Whiston
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
discord/utils.py
|
|
|
@ -1545,7 +1545,7 @@ class _RawReprMixin: |
|
|
|
return f'<{self.__class__.__name__} {value}>' |
|
|
|
|
|
|
|
|
|
|
|
# `inspect.iscoroutinefunction()` only became equivalent to (now deprecated) `inspect.iscoroutinefunction()` in Python 3.12 |
|
|
|
# `inspect.iscoroutinefunction()` only became equivalent to (now deprecated) `asyncio.iscoroutinefunction()` in Python 3.12 |
|
|
|
# https://github.com/python/cpython/issues/122858#issuecomment-2466239748 |
|
|
|
if sys.version_info >= (3, 12): |
|
|
|
_iscoroutinefunction = inspect.iscoroutinefunction |
|
|
|
|