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

Make merge_pyi not to overwrite existing type annotations. When we assume that the existing type annotations are correct, we should totally not overwrite it as the same thing can be named in different ways depending on how you import it. But it's not a good idea to change the way how the users have written the import already. #1784

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Sep 27, 2024

Make merge_pyi not to overwrite existing type annotations. When we assume that the existing type annotations are correct, we should totally not overwrite it as the same thing can be named in different ways depending on how you import it. But it's not a good idea to change the way how the users have written the import already.

The former change was introduced in #1644, but it seems that respecting the original code best suits what we think this tool should behave.

@copybara-service copybara-service bot changed the title Make merge_pyi not to overwrite existing type annotations. When we assume that the existing type annotations are correct, we should totally not overwrite it as the same thing can be named in different ways depending on how you import it. But it's not a good idea to change the way how the users have written the import already. Make merge_pyi not to overwrite existing type annotations. When we assume that the existing type annotations are correct, we should totally not overwrite it as the same thing can be named in different ways depending on how you import it. But it's not a good idea to change the way how the users have written the import already. Sep 27, 2024
@copybara-service copybara-service bot force-pushed the cl/678640645 branch 2 times, most recently from d5437c0 to 6153320 Compare September 27, 2024 11:40
@copybara-service copybara-service bot closed this Sep 27, 2024
@copybara-service copybara-service bot deleted the cl/678640645 branch September 27, 2024 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants