mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-06 17:29:03 +00:00
Fix comment about inspect replacing inspect
This commit is contained in:
1 parent
23e2c4d8de
commit
84f9877860
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user