Skip to content

[Bug]: Base class in emitted Python code has doc strings like "Remove all items from D"... don't know what "D" stands for #11196

Description

@dargilco

Describe the bug

Emitted Python code has this in the class class _MyMutableMapping(MutableMapping[str, typing.Any]): in file model_base.py:

    def clear(self) -> None:
        """
        Remove all items from D.
        """
        self._data.clear()

Not clear what "D." means. I also see this is in doc string of some other methods/properties in this class.

See for example latest azure-ai-projects ref APIs: https://learn.microsoft.com/en-us/python/api/azure-ai-projects/azure.ai.projects.models.a2apreviewtool?view=azure-python#azure-ai-projects-models-a2apreviewtool-clear

TypeSpec for this emitted code is here: https://github.com/Azure/azure-rest-api-specs/tree/feature/foundry-release/specification/ai-foundry/data-plane/Foundry

Reproduction

.

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingemitter:client:pythonIssue for the Python client emitter: @typespec/http-client-python

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions