Skip to content

azure-schemaregistry needs linting updates for pylint version 3.2.7 #39279

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-schemaregistry
Pylint version: 3.2.7
Pylint Build: Link to build (2025-04-20)

Pylint Errors:

2025-04-20T19:33:20.8877471Z ************* Module azure.schemaregistry._model_base
2025-04-20T19:33:20.8881150Z azure/schemaregistry/_model_base.py:391: [W0221(arguments-differ), _MyMutableMapping.pop] Number of parameters was 3 in 'MutableMapping.pop' and is now 2 in overriding '_MyMutableMapping.pop' method
2025-04-20T19:33:20.8881883Z azure/schemaregistry/_model_base.py:394: [W0222(signature-differs), _MyMutableMapping.pop] Signature differs from overridden 'pop' method
2025-04-20T19:33:20.8882390Z azure/schemaregistry/_model_base.py:397: [W0222(signature-differs), _MyMutableMapping.pop] Signature differs from overridden 'pop' method
2025-04-20T19:33:20.8882971Z azure/schemaregistry/_model_base.py:410: [W0221(arguments-differ), _MyMutableMapping.update] Number of parameters was 1 in 'MutableMapping.update' and is now 3 in overriding '_MyMutableMapping.update' method
2025-04-20T19:33:20.8883589Z azure/schemaregistry/_model_base.py:417: [W0222(signature-differs), _MyMutableMapping.setdefault] Signature differs from overridden 'setdefault' method
2025-04-20T19:33:20.8884120Z azure/schemaregistry/_model_base.py:636: [E1101(no-member), Model._deserialize] Class 'Model' has no 'mapping' member
2025-04-20T19:33:20.8884557Z ************* Module azure.schemaregistry.encoder.jsonencoder.aio._async_lru
2025-04-20T19:33:20.8885342Z azure/schemaregistry/encoder/jsonencoder/aio/_async_lru.py:32: [C4763(do-not-import-asyncio), ] If asyncio.sleep() is being called and there is an azure core transport created, we should instead use the sleep function from the azure.core.pipeline.transport context instead of importing asyncio. For other imports of asyncio, ignore this warning.
2025-04-20T19:33:20.8885807Z
2025-04-20T19:33:20.8886090Z -----------------------------------
2025-04-20T19:33:20.8886390Z Your code has been rated at 9.96/10
2025-04-20T19:33:20.8886536Z
2025-04-20T19:33:22.6214627Z

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-schemaregistry>pip install "tox<5"
  2. ../azure-schemaregistry>tox run -e next-pylint -c ../../../eng/tox/tox.ini --root .

See the Pylint Guide for more information.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions