@typespec/http-client-python 0.4.3 → 0.4.4

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.
@@ -24,7 +24,7 @@ class GeneratorRenderer(m2r2.RestRenderer):
24
24
 
25
25
  def inline_html(self, html: str) -> str:
26
26
  """Do not render inline HTML with a role definition."""
27
- return f":code:`{html}`"
27
+ return r"\ :code:`{}`".format(html)
28
28
 
29
29
 
30
30
  class M2R(YamlUpdatePlugin):
@@ -1,3 +1,5 @@
1
+ setuptools==69.2.0
2
+ -e ../../
1
3
  aiohttp;python_full_version>="3.5.2"
2
4
  requests==2.32.2
3
5
  pytest
@@ -0,0 +1,10 @@
1
+ # ------------------------------------
2
+ # Copyright (c) Microsoft Corporation.
3
+ # Licensed under the MIT License.
4
+ # ------------------------------------
5
+ from pygen.m2r import M2R
6
+
7
+
8
+ def test_inline_html():
9
+ des = "Format: <MajorVersion>.<MinorVersion>.<Patch>"
10
+ M2R.convert_to_rst(des) == r"Format: \ :code:`<MajorVersion>`.\ :code:`<MinorVersion>`.\ :code:`<Patch>`"
@@ -1,3 +1,5 @@
1
+ setuptools==69.2.0
2
+ -e ../../
1
3
  aiohttp;python_full_version>="3.5.2"
2
4
  requests==2.32.2
3
5
  pytest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/http-client-python",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec emitter for Python SDKs",
6
6
  "homepage": "https://typespec.io",