Skip to content

Remove unused # type: ignore comments#3325

Merged
JelleZijlstra merged 3 commits into
python:masterfrom
srittau:unused-type-ignore
Oct 9, 2019
Merged

Remove unused # type: ignore comments#3325
JelleZijlstra merged 3 commits into
python:masterfrom
srittau:unused-type-ignore

Conversation

@srittau
Copy link
Copy Markdown
Collaborator

@srittau srittau commented Oct 8, 2019

No description provided.

Comment thread stdlib/3/ast.pyi
@@ -9,7 +9,7 @@ from typing import overload, Any, Iterator, Optional, Union, TypeVar
# is imported in both modules. unfortunately we can't just rename sys,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can this comment be removed now? It's not clear exactly what it's referring to; there's nothing unusual in the below code.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This was introduced in #2887, together with the # type: ignore annotation. @msullivan In case this is still relevant, can we reword the comment to reference the # type: ignore somehow? As an outsider it's hard for me to judge the relevancy of how sys relates to this import or the ignore.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I have re-added it for now.

Comment thread stdlib/3/enum.pyi Outdated
Comment thread third_party/2/enum.pyi Outdated
@JelleZijlstra JelleZijlstra merged commit 07c8675 into python:master Oct 9, 2019
@srittau srittau deleted the unused-type-ignore branch October 9, 2019 17:36
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