Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix vendor import for multipart #2567

Merged
merged 4 commits into from
May 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep same logic with

{% if code_model.has_form_data and code_model.options["models_mode"] == "dpg" and not async_mode %}

):
file_import.add_submodule_import("typing", "IO", ImportType.STDLIB)
file_import.add_submodule_import("typing", "Tuple", ImportType.STDLIB)
Expand Down
Loading