-
Notifications
You must be signed in to change notification settings - Fork 57
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 internal model typing #2517
Conversation
…fix-internal-model-typing
…fix-internal-model-typing
retval = f"{self.code_model.models_filename}.{retval}" | ||
return retval if is_operation_file else f'"{retval}"' | ||
skip_quote = kwargs.get("skip_quote", False) | ||
retval = typing_name( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it's messier to , because looking at this code, it's a bunch of information that goes into a black box with .
I would be ok with either duplicating this code, or having a helper function that is much simpler, like add_models_file_to_path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine. To make it clear, I remove the helper function
…fix-internal-model-typing
…autorest.python into fix-internal-model-typing
Face is waiting for the fix |
fixes #2507
The PR includes: