@typespec/http-client-python 0.11.2 → 0.12.0-dev.2

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.
@@ -64,7 +64,9 @@ class OperationGroup(BaseModel):
64
64
  )
65
65
 
66
66
  def base_class(self, async_mode: bool) -> str:
67
- pipeline_client = f"{'Async' if async_mode else ''}PipelineClient"
67
+ pipeline_client = (
68
+ f"{'Async' if async_mode else ''}PipelineClient[HttpRequest, {'Async' if async_mode else ''}HttpResponse]"
69
+ )
68
70
  base_classes: List[str] = []
69
71
  if self.is_mixin:
70
72
  base_classes.append(f"ClientMixinABC[{pipeline_client}, {self.client.name}Configuration]")
@@ -166,6 +168,16 @@ class OperationGroup(BaseModel):
166
168
  "ClientMixinABC",
167
169
  ImportType.LOCAL,
168
170
  )
171
+ file_import.add_submodule_import(
172
+ "rest",
173
+ "HttpRequest",
174
+ ImportType.SDKCORE,
175
+ )
176
+ file_import.add_submodule_import(
177
+ "rest",
178
+ f"{'Async' if async_mode else ''}HttpResponse",
179
+ ImportType.SDKCORE,
180
+ )
169
181
  else:
170
182
  file_import.add_msrest_import(
171
183
  serialize_namespace=kwargs.get("serialize_namespace", self.code_model.namespace),
@@ -4,11 +4,11 @@
4
4
  "install": [
5
5
  {
6
6
  "download_info": {
7
- "url": "https://files.pythonhosted.org/packages/cc/ea/d53f2f8897c46a36df085964d07761ea4c2d1f2cf92019693b6742b7aabb/setuptools-79.0.0-py3-none-any.whl",
7
+ "url": "https://files.pythonhosted.org/packages/0d/6d/b4752b044bf94cb802d88a888dc7d288baaf77d7910b7dedda74b5ceea0c/setuptools-79.0.1-py3-none-any.whl",
8
8
  "archive_info": {
9
- "hash": "sha256=b9ab3a104bedb292323f53797b00864e10e434a3ab3906813a7169e4745b912a",
9
+ "hash": "sha256=e147c0549f27767ba362f9da434eab9c5dc0045d5304feb602a0af001089fc51",
10
10
  "hashes": {
11
- "sha256": "b9ab3a104bedb292323f53797b00864e10e434a3ab3906813a7169e4745b912a"
11
+ "sha256": "e147c0549f27767ba362f9da434eab9c5dc0045d5304feb602a0af001089fc51"
12
12
  }
13
13
  }
14
14
  },
@@ -18,7 +18,7 @@
18
18
  "metadata": {
19
19
  "metadata_version": "2.4",
20
20
  "name": "setuptools",
21
- "version": "79.0.0",
21
+ "version": "79.0.1",
22
22
  "dynamic": [
23
23
  "license-file"
24
24
  ],
@@ -125,9 +125,9 @@
125
125
  "implementation_version": "3.9.21",
126
126
  "os_name": "posix",
127
127
  "platform_machine": "x86_64",
128
- "platform_release": "5.15.0-1086-azure",
128
+ "platform_release": "5.15.0-1087-azure",
129
129
  "platform_system": "Linux",
130
- "platform_version": "#95~20.04.1-Ubuntu SMP Thu Mar 27 18:45:17 UTC 2025",
130
+ "platform_version": "#96~20.04.1-Ubuntu SMP Mon Apr 7 17:28:41 UTC 2025",
131
131
  "python_full_version": "3.9.21",
132
132
  "platform_python_implementation": "CPython",
133
133
  "python_version": "3.9",
@@ -64,7 +64,9 @@ class OperationGroup(BaseModel):
64
64
  )
65
65
 
66
66
  def base_class(self, async_mode: bool) -> str:
67
- pipeline_client = f"{'Async' if async_mode else ''}PipelineClient"
67
+ pipeline_client = (
68
+ f"{'Async' if async_mode else ''}PipelineClient[HttpRequest, {'Async' if async_mode else ''}HttpResponse]"
69
+ )
68
70
  base_classes: List[str] = []
69
71
  if self.is_mixin:
70
72
  base_classes.append(f"ClientMixinABC[{pipeline_client}, {self.client.name}Configuration]")
@@ -166,6 +168,16 @@ class OperationGroup(BaseModel):
166
168
  "ClientMixinABC",
167
169
  ImportType.LOCAL,
168
170
  )
171
+ file_import.add_submodule_import(
172
+ "rest",
173
+ "HttpRequest",
174
+ ImportType.SDKCORE,
175
+ )
176
+ file_import.add_submodule_import(
177
+ "rest",
178
+ f"{'Async' if async_mode else ''}HttpResponse",
179
+ ImportType.SDKCORE,
180
+ )
169
181
  else:
170
182
  file_import.add_msrest_import(
171
183
  serialize_namespace=kwargs.get("serialize_namespace", self.code_model.namespace),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/http-client-python",
3
- "version": "0.11.2",
3
+ "version": "0.12.0-dev.2",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec emitter for Python SDKs",
6
6
  "homepage": "https://typespec.io",