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-servicebus
Pylint version: 3.2.7
Pylint Build: Link to build (2025-04-06)
Pylint Errors:
2025-04-06T17:33:44.7958290Z ************* Module azure.servicebus.management._model_workaround
2025-04-06T17:33:44.7961093Z azure/servicebus/management/_model_workaround.py:247: [C4761(do-not-use-legacy-typing), avoid_timedelta_overflow] Do not use legacy typing using comments.
2025-04-06T17:33:44.7963023Z azure/servicebus/management/_model_workaround.py:270: [C4761(do-not-use-legacy-typing), _adjust_dict_key_sequence] Do not use legacy typing using comments.
2025-04-06T17:33:44.7965096Z azure/servicebus/management/_model_workaround.py:280: [C4761(do-not-use-legacy-typing), adjust_attribute_map] Do not use legacy typing using comments.
2025-04-06T17:33:44.7966810Z ************* Module azure.servicebus.management._xml_workaround_policy
2025-04-06T17:33:44.7968580Z azure/servicebus/management/_xml_workaround_policy.py:25: [C4761(do-not-use-legacy-typing), ServiceBusXMLWorkaroundPolicy.on_request] Do not use legacy typing using comments.
2025-04-06T17:33:44.7970312Z ************* Module azure.servicebus.management._shared_key_policy
2025-04-06T17:33:44.7972053Z azure/servicebus/management/_shared_key_policy.py:20: [C4761(do-not-use-legacy-typing), ServiceBusSharedKeyCredentialPolicy.init] Do not use legacy typing using comments.
2025-04-06T17:33:44.7973534Z azure/servicebus/management/_shared_key_policy.py:39: [C4761(do-not-use-legacy-typing), ServiceBusSharedKeyCredentialPolicy.on_request] Do not use legacy typing using comments.
2025-04-06T17:33:44.7974579Z ************* Module azure.servicebus.management._utils
2025-04-06T17:33:44.7975560Z azure/servicebus/management/_utils.py:284: [C4761(do-not-use-legacy-typing), _validate_entity_name_type] Do not use legacy typing using comments.
2025-04-06T17:33:44.7976625Z azure/servicebus/management/_utils.py:290: [C4761(do-not-use-legacy-typing), _validate_topic_and_subscription_types] Do not use legacy typing using comments.
2025-04-06T17:33:44.7977691Z azure/servicebus/management/_utils.py:300: [C4761(do-not-use-legacy-typing), _validate_topic_subscription_and_rule_types] Do not use legacy typing using comments.
2025-04-06T17:33:44.7978760Z azure/servicebus/management/_utils.py:310: [C4761(do-not-use-legacy-typing), _normalize_entity_path_to_full_path_if_needed] Do not use legacy typing using comments.
2025-04-06T17:33:44.7979832Z azure/servicebus/management/_utils.py:319: [C4761(do-not-use-legacy-typing), create_properties_from_dict_if_needed] Do not use legacy typing using comments.
2025-04-06T17:33:44.7980806Z ************* Module azure.servicebus._pyamqp.session
2025-04-06T17:33:44.7981759Z azure/servicebus/_pyamqp/session.py:84: [C4761(do-not-use-legacy-typing), Session._set_state] Do not use legacy typing using comments.
2025-04-06T17:33:44.7982802Z azure/servicebus/_pyamqp/session.py:107: [C4761(do-not-use-legacy-typing), Session._get_next_output_handle] Do not use legacy typing using comments.
2025-04-06T17:33:44.7984047Z azure/servicebus/_pyamqp/session.py:377: [C4761(do-not-use-legacy-typing), Session._wait_for_response] Do not use legacy typing using comments.
2025-04-06T17:33:44.7985104Z azure/servicebus/_pyamqp/session.py:401: [C4761(do-not-use-legacy-typing), Session.end] Do not use legacy typing using comments.
2025-04-06T17:33:44.7986048Z ************* Module azure.servicebus._pyamqp.aio._client_async
2025-04-06T17:33:44.7987011Z azure/servicebus/_pyamqp/aio/_client_async.py:7: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T17:33:44.7987981Z ************* Module azure.servicebus._pyamqp.aio._transport_async
2025-04-06T17:33:44.7988972Z azure/servicebus/_pyamqp/aio/_transport_async.py:35: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T17:33:44.7990143Z ************* Module azure.servicebus._pyamqp.aio._connection_async
2025-04-06T17:33:44.7991144Z azure/servicebus/_pyamqp/aio/_connection_async.py:13: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T17:33:44.7992129Z ************* Module azure.servicebus._pyamqp.aio._session_async
2025-04-06T17:33:44.7993109Z azure/servicebus/_pyamqp/aio/_session_async.py:11: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T17:33:44.7994693Z azure/servicebus/_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-06T17:33:44.7995667Z ************* Module azure.servicebus._pyamqp.aio._sender_async
2025-04-06T17:33:44.7996667Z azure/servicebus/_pyamqp/aio/_sender_async.py:10: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T17:33:44.7997636Z ************* Module azure.servicebus.aio._async_utils
2025-04-06T17:33:44.7998613Z azure/servicebus/aio/_async_utils.py:9: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T17:33:44.7999581Z ************* Module azure.servicebus.aio._servicebus_sender_async
2025-04-06T17:33:44.8000544Z azure/servicebus/aio/_servicebus_sender_async.py:6: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T17:33:44.8001526Z ************* Module azure.servicebus.aio._async_auto_lock_renewer
2025-04-06T17:33:44.8002487Z azure/servicebus/aio/_async_auto_lock_renewer.py:7: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T17:33:44.8003651Z ************* Module azure.servicebus.aio._servicebus_receiver_async
2025-04-06T17:33:44.8004664Z azure/servicebus/aio/_servicebus_receiver_async.py:5: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T17:33:44.8005631Z ************* Module azure.servicebus.aio._base_handler_async
2025-04-06T17:33:44.8006604Z azure/servicebus/aio/_base_handler_async.py:6: [C4763(do-not-import-asyncio), ] Do not import the asyncio package directly in your library
2025-04-06T17:33:44.8007049Z
2025-04-06T17:33:44.8007831Z -----------------------------------
2025-04-06T17:33:44.8008662Z Your code has been rated at 9.98/10
2025-04-06T17:33:44.8009020Z
2025-04-06T17:33:47.2333075Z
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-servicebus>pip install "tox<5"
../azure-servicebus>tox run -e next-pylint -c ../../../eng/tox/tox.ini --root .
See the Pylint Guide for more information.