Skip to content

Fix third_party errors with --disallow-any-generics#3278

Merged
JelleZijlstra merged 10 commits into
python:masterfrom
srittau:disallow-any-generic
Sep 30, 2019
Merged

Fix third_party errors with --disallow-any-generics#3278
JelleZijlstra merged 10 commits into
python:masterfrom
srittau:disallow-any-generic

Conversation

@srittau
Copy link
Copy Markdown
Collaborator

@srittau srittau commented Sep 29, 2019

Part of #3267. Together with #3276 this should fix all such problems.

I mostly used Any annotations. These can often be improved with more specific types.

Copy link
Copy Markdown
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Thanks for doing all this! I'm concerned that some of the changes to IO-like classes can lead to new false positives (comments inline).

Comment thread third_party/2and3/atomicwrites/__init__.pyi Outdated
Comment thread third_party/2and3/click/types.pyi
Comment thread third_party/2and3/atomicwrites/__init__.pyi Outdated
Comment thread third_party/2and3/atomicwrites/__init__.pyi
Comment thread third_party/2and3/atomicwrites/__init__.pyi Outdated
Comment thread third_party/2and3/click/utils.pyi Outdated
Comment thread third_party/2and3/click/utils.pyi Outdated
Comment thread third_party/2and3/click/utils.pyi Outdated
Comment thread third_party/2and3/jinja2/filters.pyi
@srittau
Copy link
Copy Markdown
Collaborator Author

srittau commented Sep 30, 2019

@JelleZijlstra I think I changed everything that needed to be changed.

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