Skip to content

pylint unused-import errors in generated operations #3005

@swathipil

Description

@swathipil

Hi, I'm seeing the following pylint errors in this generated code:

************* Module azure.schemaregistry._types
azure/schemaregistry/_types.py:2: [I0021(useless-suppression), ] Useless suppression of 'too-many-lines'
************* Module azure.schemaregistry._operations._operations
azure/schemaregistry/_operations/_operations.py:8: [W0611(unused-import), ] Unused import json
azure/schemaregistry/_operations/_operations.py:29: [W0611(unused-import), ] Unused SdkJSONEncoder imported from _model_base
************* Module azure.schemaregistry.aio._operations._operations
azure/schemaregistry/aio/_operations/_operations.py:8: [W0611(unused-import), ] Unused import json
azure/schemaregistry/aio/_operations/_operations.py:30: [W0611(unused-import), ] Unused SdkJSONEncoder imported from _model_base

I believe this is happening because the generated code doesn't use json.dumps() but these are still imported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions