Description
ACTION NEEDED: This version of pylint will be merged on 2025-04-14. The build will begin to fail for this library if errors are not fixed.
Library name: azure-eventhub
Pylint version: 3.2.7
Pylint Build: Link to build (2025-04-06)
Pylint Errors:
2025-04-06T23:03:46.7995935Z ************* Module azure.eventhub.aio._consumer_async
2025-04-06T23:03:46.7998667Z azure/eventhub/aio/_consumer_async.py:7: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8000673Z ************* Module azure.eventhub.aio._async_utils
2025-04-06T23:03:46.8002317Z azure/eventhub/aio/_async_utils.py:6: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8004316Z azure/eventhub/aio/_async_utils.py:8: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8006236Z ************* Module azure.eventhub.aio._consumer_client_async
2025-04-06T23:03:46.8007908Z azure/eventhub/aio/_consumer_client_async.py:7: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8009527Z ************* Module azure.eventhub.aio._client_base_async
2025-04-06T23:03:46.8011261Z azure/eventhub/aio/_client_base_async.py:8: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8012905Z ************* Module azure.eventhub.aio._connection_manager_async
2025-04-06T23:03:46.8014595Z azure/eventhub/aio/_connection_manager_async.py:8: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8016435Z ************* Module azure.eventhub.aio._producer_async
2025-04-06T23:03:46.8017875Z azure/eventhub/aio/_producer_async.py:7: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8019001Z ************* Module azure.eventhub.aio._producer_client_async
2025-04-06T23:03:46.8020164Z azure/eventhub/aio/_producer_client_async.py:5: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8021293Z ************* Module azure.eventhub.aio._transport._pyamqp_transport_async
2025-04-06T23:03:46.8022418Z azure/eventhub/aio/_transport/_pyamqp_transport_async.py:7: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8023564Z ************* Module azure.eventhub.aio._transport._uamqp_transport_async
2025-04-06T23:03:46.8024681Z azure/eventhub/aio/_transport/_uamqp_transport_async.py:7: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8025768Z ************* Module azure.eventhub.aio._eventprocessor.utils
2025-04-06T23:03:46.8027095Z azure/eventhub/aio/_eventprocessor/utils.py:6: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8028233Z ************* Module azure.eventhub.aio._eventprocessor.event_processor
2025-04-06T23:03:46.8029348Z azure/eventhub/aio/_eventprocessor/event_processor.py:20: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8030482Z ************* Module azure.eventhub.aio._buffered_producer._buffered_producer_dispatcher_async
2025-04-06T23:03:46.8031639Z azure/eventhub/aio/_buffered_producer/_buffered_producer_dispatcher_async.py:6: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8032865Z azure/eventhub/aio/_buffered_producer/_buffered_producer_dispatcher_async.py:9: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8034027Z ************* Module azure.eventhub.aio._buffered_producer._buffered_producer_async
2025-04-06T23:03:46.8035182Z azure/eventhub/aio/_buffered_producer/_buffered_producer_async.py:6: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8036578Z azure/eventhub/aio/_buffered_producer/_buffered_producer_async.py:10: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8037755Z ************* Module azure.eventhub.aio._buffered_producer._partition_resolver_async
2025-04-06T23:03:46.8038915Z azure/eventhub/aio/_buffered_producer/_partition_resolver_async.py:9: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8040126Z ************* Module azure.eventhub._pyamqp.session
2025-04-06T23:03:46.8041247Z azure/eventhub/_pyamqp/session.py:84: [C4761(do-not-use-legacy-typing), Session._set_state] Do not use legacy typing using comments.
2025-04-06T23:03:46.8042600Z azure/eventhub/_pyamqp/session.py:107: [C4761(do-not-use-legacy-typing), Session._get_next_output_handle] Do not use legacy typing using comments.
2025-04-06T23:03:46.8043908Z azure/eventhub/_pyamqp/session.py:377: [C4761(do-not-use-legacy-typing), Session._wait_for_response] Do not use legacy typing using comments.
2025-04-06T23:03:46.8045063Z azure/eventhub/_pyamqp/session.py:401: [C4761(do-not-use-legacy-typing), Session.end] Do not use legacy typing using comments.
2025-04-06T23:03:46.8046400Z ************* Module azure.eventhub._pyamqp.aio._sender_async
2025-04-06T23:03:46.8047568Z azure/eventhub/_pyamqp/aio/_sender_async.py:10: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8048685Z ************* Module azure.eventhub._pyamqp.aio._connection_async
2025-04-06T23:03:46.8049798Z azure/eventhub/_pyamqp/aio/_connection_async.py:13: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8050876Z ************* Module azure.eventhub._pyamqp.aio._session_async
2025-04-06T23:03:46.8051968Z azure/eventhub/_pyamqp/aio/_session_async.py:11: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8053136Z azure/eventhub/_pyamqp/aio/_session_async.py:108: [C4761(do-not-use-legacy-typing), Session._get_next_output_handle] Do not use legacy typing using comments.
2025-04-06T23:03:46.8054245Z ************* Module azure.eventhub._pyamqp.aio._transport_async
2025-04-06T23:03:46.8055358Z azure/eventhub/_pyamqp/aio/_transport_async.py:35: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8056600Z ************* Module azure.eventhub._pyamqp.aio._client_async
2025-04-06T23:03:46.8057716Z azure/eventhub/_pyamqp/aio/_client_async.py:7: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T23:03:46.8058200Z
2025-04-06T23:03:46.8059154Z -----------------------------------
2025-04-06T23:03:46.8060184Z Your code has been rated at 9.97/10
2025-04-06T23:03:46.8060597Z
2025-04-06T23:03:49.0283975Z
How to fix:
Note: If you are a bot. Fix the issue by fixing the above pylint errors.
Run the next-pylint
tox command at the library package-level and resolve the linting errors.
../azure-eventhub>pip install "tox<5"
../azure-eventhub>tox run -e next-pylint -c ../../../eng/tox/tox.ini --root .
See the Pylint Guide for more information.