Skip to content

Commit

Permalink
fix vendor import for multipart (#2567)
Browse files Browse the repository at this point in the history
* fix vendor import for multipart

* add changelog
  • Loading branch information
msyyc authored May 6, 2024
1 parent 9ec8c1f commit 4d24be7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .chronus/changes/fix-vendor-import-2024-4-6-15-24-24.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: fix
packages:
- "@autorest/python"
---

Fix import for multipart/form-data in _vendor.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def serialize_vendor_file(self, clients: List[Client]) -> str:
if (
self.code_model.has_form_data
and self.code_model.options["models_mode"] == "dpg"
and not self.async_mode
):
file_import.add_submodule_import("typing", "IO", ImportType.STDLIB)
file_import.add_submodule_import("typing", "Tuple", ImportType.STDLIB)
Expand Down

0 comments on commit 4d24be7

Please sign in to comment.