diff --git a/.chronus/changes/python-models-docstring-2025-1-25-2-51-40.md b/.chronus/changes/python-models-docstring-2025-1-25-2-51-40.md new file mode 100644 index 00000000000..1fdcfc7693e --- /dev/null +++ b/.chronus/changes/python-models-docstring-2025-1-25-2-51-40.md @@ -0,0 +1,8 @@ +--- +# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking +changeKind: fix +packages: + - "@typespec/http-client-python" +--- + +[python] remove useless docstring for models diff --git a/packages/http-client-python/generator/pygen/codegen/templates/model_dpg.py.jinja2 b/packages/http-client-python/generator/pygen/codegen/templates/model_dpg.py.jinja2 index bef260958f2..c7a874872bb 100644 --- a/packages/http-client-python/generator/pygen/codegen/templates/model_dpg.py.jinja2 +++ b/packages/http-client-python/generator/pygen/codegen/templates/model_dpg.py.jinja2 @@ -8,10 +8,6 @@ {{ serializer.discriminator_docstring(model) | wordwrap(width=95, break_long_words=False, break_on_hyphens=False, wrapstring='\n ') }} {% endif %} - {% if model.has_readonly_or_constant_property %} - - Readonly variables are only populated by the server, and will be ignored when sending a request. - {% endif %} {% if model.properties != None %} {% for p in model.properties %}