Skip to content

stubgen: Don't annotate unknown argument and return types #10626

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

Merged
merged 8 commits into from
Jun 11, 2021

Conversation

srittau
Copy link
Contributor

@srittau srittau commented Jun 10, 2021

Description

Don't annotate unknown argument and return types with explicit Any. Also, fix formatting of functions that have an explicit type and default argument.

Test Plan

I adapted the existing tests. I also added tests to ensure that explicit Anys remain in the stub. I also added a test for the formatting fix.

@srittau srittau changed the title Stubgen: Don't annotate unknown argument and return types stubgen: Don't annotate unknown argument and return types Jun 10, 2021
@srittau srittau mentioned this pull request Jun 11, 2021
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
@JelleZijlstra JelleZijlstra merged commit 55bd489 into python:master Jun 11, 2021
@srittau srittau deleted the stubgen-no-unknown branch June 11, 2021 17:00
JukkaL pushed a commit that referenced this pull request Jun 21, 2021
### Description

Don't annotate unknown argument and return types with explicit `Any`. Also, fix formatting of functions that have an explicit type and default argument.

## Test Plan

I adapted the existing tests. I also added tests to ensure that explicit `Any`s remain in the stub. I also added a test for the formatting fix.
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.

2 participants