From bdedce42cdd428ebc72f9f0cf53bc348b0cadeeb Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Tue, 25 Feb 2025 10:48:31 +0800 Subject: [PATCH 1/2] remove useless docstring for models --- .../generator/pygen/codegen/templates/model_dpg.py.jinja2 | 4 ---- 1 file changed, 4 deletions(-) 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 %} From ad09dcc360714bbe8797af52a9e695370486c30b Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Tue, 25 Feb 2025 14:26:34 +0800 Subject: [PATCH 2/2] Create python-models-docstring-2025-1-25-2-51-40.md --- .../changes/python-models-docstring-2025-1-25-2-51-40.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .chronus/changes/python-models-docstring-2025-1-25-2-51-40.md 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