Skip to content

Commit

Permalink
add back check to import Any for msrest models
Browse files Browse the repository at this point in the history
  • Loading branch information
iscai-msft committed Jan 9, 2025
1 parent c77764f commit ef075f0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ def instance_check_template(self) -> str:

def imports(self, **kwargs: Any) -> FileImport:
file_import = super().imports(**kwargs)
file_import.add_submodule_import("typing", "Any", ImportType.STDLIB, TypingSection.CONDITIONAL)
if self.flattened_property:
file_import.add_submodule_import("typing", "Any", ImportType.STDLIB, TypingSection.CONDITIONAL)
return file_import


Expand Down

0 comments on commit ef075f0

Please sign in to comment.