@typespec/http-client-python 0.3.8 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -340,7 +340,7 @@ class StringType(PrimitiveType):
340
340
  return validation or None
341
341
 
342
342
  def get_declaration(self, value) -> str:
343
- return f'"{value}"'
343
+ return f"'{value}'" if value == '"' else f'"{value}"'
344
344
 
345
345
  @property
346
346
  def serialization_type(self) -> str:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/http-client-python",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec emitter for Python SDKs",
6
6
  "homepage": "https://typespec.io",