This warning is indicating that a coroutine function called BaseTransport.transport_connect was defined, but never awaited (i.e. never called with await keyword) in the code. This can lead to unexpected behavior or errors.

To resolve this warning, you need to modify the code to call the BaseTransport.transport_connect function with await keyword. This will ensure that the coroutine is properly executed and awaited before moving on to the next step in the code.

Additionally, the warning suggests enabling tracemalloc to get a traceback of object allocation, which can help to identify the source of the issue. You can enable tracemalloc by calling tracemalloc.start() at the beginning of your code

usrlibpython38asyncioeventspy74 RuntimeWarning coroutine BaseTransporttransport_connect was never awaited self_args = NoneRuntimeWarning Enable tracemalloc to get the object allocation traceback

原文地址: https://www.cveoy.top/t/topic/fSPr 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录