Skip to content

azure-communication-phonenumbers needs linting updates for pylint version 3.2.7 #34165

Open
@azure-sdk

Description

@azure-sdk

ACTION NEEDED: This version of pylint will be merged on 2025-07-14. The build will begin to fail for this library if errors are not fixed.

Library name: azure-communication-phonenumbers
Pylint version: 3.2.7
Pylint Build: Link to build (2025-04-21)

Pylint Errors:

2025-04-21T04:03:41.3256876Z ************* Module azure.communication.phonenumbers.siprouting._sip_routing_client
2025-04-21T04:03:41.3258368Z azure/communication/phonenumbers/siprouting/_sip_routing_client.py:37: [C4761(do-not-use-legacy-typing), SipRoutingClient.init] Do not use legacy typing using comments.
2025-04-21T04:03:41.3259751Z azure/communication/phonenumbers/siprouting/_sip_routing_client.py:64: [C4761(do-not-use-legacy-typing), SipRoutingClient.from_connection_string] Do not use legacy typing using comments.
2025-04-21T04:03:41.3261043Z azure/communication/phonenumbers/siprouting/_sip_routing_client.py:80: [C4761(do-not-use-legacy-typing), SipRoutingClient.get_trunk] Do not use legacy typing using comments.
2025-04-21T04:03:41.3262224Z azure/communication/phonenumbers/siprouting/_sip_routing_client.py:102: [C4761(do-not-use-legacy-typing), SipRoutingClient.set_trunk] Do not use legacy typing using comments.
2025-04-21T04:03:41.3263441Z azure/communication/phonenumbers/siprouting/_sip_routing_client.py:121: [C4761(do-not-use-legacy-typing), SipRoutingClient.delete_trunk] Do not use legacy typing using comments.
2025-04-21T04:03:41.3264546Z azure/communication/phonenumbers/siprouting/_sip_routing_client.py:140: [C4761(do-not-use-legacy-typing), SipRoutingClient.list_trunks] Do not use legacy typing using comments.
2025-04-21T04:03:41.3265767Z azure/communication/phonenumbers/siprouting/_sip_routing_client.py:161: [C4761(do-not-use-legacy-typing), SipRoutingClient.list_routes] Do not use legacy typing using comments.
2025-04-21T04:03:41.3266777Z azure/communication/phonenumbers/siprouting/_sip_routing_client.py:185: [C4761(do-not-use-legacy-typing), SipRoutingClient.set_trunks] Do not use legacy typing using comments.
2025-04-21T04:03:41.3267481Z azure/communication/phonenumbers/siprouting/_sip_routing_client.py:214: [C4761(do-not-use-legacy-typing), SipRoutingClient.set_routes] Do not use legacy typing using comments.
2025-04-21T04:03:41.3268179Z azure/communication/phonenumbers/siprouting/_sip_routing_client.py:242: [C4761(do-not-use-legacy-typing), SipRoutingClient.update_trunks] Do not use legacy typing using comments.
2025-04-21T04:03:41.3268796Z ************* Module azure.communication.phonenumbers.siprouting.aio._sip_routing_client_async
2025-04-21T04:03:41.3269645Z azure/communication/phonenumbers/siprouting/aio/_sip_routing_client_async.py:39: [C4761(do-not-use-legacy-typing), SipRoutingClient.init] Do not use legacy typing using comments.
2025-04-21T04:03:41.3270504Z azure/communication/phonenumbers/siprouting/aio/_sip_routing_client_async.py:66: [C4761(do-not-use-legacy-typing), SipRoutingClient.from_connection_string] Do not use legacy typing using comments.
2025-04-21T04:03:41.3271342Z azure/communication/phonenumbers/siprouting/aio/_sip_routing_client_async.py:143: [C4761(do-not-use-legacy-typing), SipRoutingClient.list_trunks] Do not use legacy typing using comments.
2025-04-21T04:03:41.3272171Z azure/communication/phonenumbers/siprouting/aio/_sip_routing_client_async.py:164: [C4761(do-not-use-legacy-typing), SipRoutingClient.list_routes] Do not use legacy typing using comments.
2025-04-21T04:03:41.3272517Z
2025-04-21T04:03:41.3273044Z -----------------------------------
2025-04-21T04:03:41.3273406Z Your code has been rated at 9.84/10
2025-04-21T04:03:41.3273608Z
2025-04-21T04:03:42.5597929Z

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.

  1. ../azure-communication-phonenumbers>pip install "tox<5"
  2. ../azure-communication-phonenumbers>tox run -e next-pylint -c ../../../eng/tox/tox.ini --root .

See the Pylint Guide for more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.Communication - Phone NumbersService AttentionWorkflow: This issue is responsible by Azure service team.pylint

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions