Skip to content

azure-ai-contentsafety needs linting updates for pylint version 3.2.7 #33222

Open
@azure-sdk

Description

@azure-sdk

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

Pylint Errors:

2025-04-05T09:34:21.4261957Z ************* Module azure.ai.contentsafety._operations._operations
2025-04-05T09:34:21.4263524Z azure/ai/contentsafety/_operations/_operations.py:305: [C4758(docstring-keyword-should-match-keyword-only), ContentSafetyClientOperationsMixin.analyze_text] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:21.4265663Z azure/ai/contentsafety/_operations/_operations.py:326: [C4758(docstring-keyword-should-match-keyword-only), ContentSafetyClientOperationsMixin.analyze_text] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:21.4267207Z azure/ai/contentsafety/_operations/_operations.py:347: [C4758(docstring-keyword-should-match-keyword-only), ContentSafetyClientOperationsMixin.analyze_text] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:21.4269129Z azure/ai/contentsafety/_operations/_operations.py:368: [C4758(docstring-keyword-should-match-keyword-only), ContentSafetyClientOperationsMixin.analyze_text] "stream, content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:21.4270694Z azure/ai/contentsafety/_operations/_operations.py:445: [C4758(docstring-keyword-should-match-keyword-only), ContentSafetyClientOperationsMixin.analyze_image] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:21.4272241Z azure/ai/contentsafety/_operations/_operations.py:466: [C4758(docstring-keyword-should-match-keyword-only), ContentSafetyClientOperationsMixin.analyze_image] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:21.4273952Z azure/ai/contentsafety/_operations/_operations.py:487: [C4758(docstring-keyword-should-match-keyword-only), ContentSafetyClientOperationsMixin.analyze_image] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:21.4275509Z azure/ai/contentsafety/_operations/_operations.py:508: [C4758(docstring-keyword-should-match-keyword-only), ContentSafetyClientOperationsMixin.analyze_image] "stream, content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:21.4276553Z azure/ai/contentsafety/_operations/_operations.py:587: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.add_or_update_blocklist_items] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:21.4277317Z azure/ai/contentsafety/_operations/_operations.py:616: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.add_or_update_blocklist_items] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:21.4278372Z azure/ai/contentsafety/_operations/_operations.py:640: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.add_or_update_blocklist_items] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:21.4279095Z azure/ai/contentsafety/_operations/_operations.py:664: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.add_or_update_blocklist_items] "stream, content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:21.4279783Z azure/ai/contentsafety/_operations/_operations.py:749: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.create_or_update_text_blocklist] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:21.4280459Z azure/ai/contentsafety/_operations/_operations.py:776: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.create_or_update_text_blocklist] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:21.4281130Z azure/ai/contentsafety/_operations/_operations.py:798: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.create_or_update_text_blocklist] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:21.4281958Z azure/ai/contentsafety/_operations/_operations.py:825: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.create_or_update_text_blocklist] "stream, content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:21.4282664Z azure/ai/contentsafety/_operations/_operations.py:964: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.get_text_blocklist] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:21.4283352Z azure/ai/contentsafety/_operations/_operations.py:1025: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.get_text_blocklist_item] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.5786171Z azure/ai/contentsafety/_operations/_operations.py:1345: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.remove_blocklist_items] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.5789209Z ************* Module azure.ai.contentsafety.aio._operations._operations
2025-04-05T09:34:22.5790719Z azure/ai/contentsafety/aio/_operations/_operations.py:57: [C4758(docstring-keyword-should-match-keyword-only), ContentSafetyClientOperationsMixin.analyze_text] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.5792305Z azure/ai/contentsafety/aio/_operations/_operations.py:78: [C4758(docstring-keyword-should-match-keyword-only), ContentSafetyClientOperationsMixin.analyze_text] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.5793886Z azure/ai/contentsafety/aio/_operations/_operations.py:99: [C4758(docstring-keyword-should-match-keyword-only), ContentSafetyClientOperationsMixin.analyze_text] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.5795451Z azure/ai/contentsafety/aio/_operations/_operations.py:120: [C4758(docstring-keyword-should-match-keyword-only), ContentSafetyClientOperationsMixin.analyze_text] "stream, content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.5797248Z azure/ai/contentsafety/aio/_operations/_operations.py:197: [C4758(docstring-keyword-should-match-keyword-only), ContentSafetyClientOperationsMixin.analyze_image] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.5798902Z azure/ai/contentsafety/aio/_operations/_operations.py:218: [C4758(docstring-keyword-should-match-keyword-only), ContentSafetyClientOperationsMixin.analyze_image] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.5800334Z azure/ai/contentsafety/aio/_operations/_operations.py:239: [C4758(docstring-keyword-should-match-keyword-only), ContentSafetyClientOperationsMixin.analyze_image] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.5801764Z azure/ai/contentsafety/aio/_operations/_operations.py:260: [C4758(docstring-keyword-should-match-keyword-only), ContentSafetyClientOperationsMixin.analyze_image] "stream, content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.5803410Z azure/ai/contentsafety/aio/_operations/_operations.py:339: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.add_or_update_blocklist_items] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.5804875Z azure/ai/contentsafety/aio/_operations/_operations.py:368: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.add_or_update_blocklist_items] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.5806351Z azure/ai/contentsafety/aio/_operations/_operations.py:392: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.add_or_update_blocklist_items] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.5807573Z azure/ai/contentsafety/aio/_operations/_operations.py:416: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.add_or_update_blocklist_items] "stream, content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.5808739Z azure/ai/contentsafety/aio/_operations/_operations.py:501: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.create_or_update_text_blocklist] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.5809755Z azure/ai/contentsafety/aio/_operations/_operations.py:528: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.create_or_update_text_blocklist] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.5810584Z azure/ai/contentsafety/aio/_operations/_operations.py:550: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.create_or_update_text_blocklist] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.5811415Z azure/ai/contentsafety/aio/_operations/_operations.py:577: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.create_or_update_text_blocklist] "stream, content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.5812217Z azure/ai/contentsafety/aio/_operations/_operations.py:716: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.get_text_blocklist] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.8143692Z azure/ai/contentsafety/aio/_operations/_operations.py:777: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.get_text_blocklist_item] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.8146491Z azure/ai/contentsafety/aio/_operations/_operations.py:1098: [C4758(docstring-keyword-should-match-keyword-only), BlocklistClientOperationsMixin.remove_blocklist_items] "content_type" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-05T09:34:22.8147001Z
2025-04-05T09:34:22.8147187Z -----------------------------------
2025-04-05T09:34:22.8147417Z Your code has been rated at 9.79/10
2025-04-05T09:34:22.8147534Z
2025-04-05T09:34:23.8974505Z

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-ai-contentsafety>pip install "tox<5"
  2. ../azure-ai-contentsafety>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.Content SafetyService AttentionWorkflow: This issue is responsible by Azure service team.good first issueThis issue tracks work that may be a good starting point for a first-time contributorpylint

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions