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

DefaultSelector in selectors.pyi is not a type, it is an alias #7087

Closed
wants to merge 14 commits into from
Closed

DefaultSelector in selectors.pyi is not a type, it is an alias #7087

wants to merge 14 commits into from

Conversation

stdlib/selectors.pyi Outdated Show resolved Hide resolved
Co-authored-by: Alex Waygood <[email protected]>
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@sobolevn
Copy link
Member Author

Mypy output looks broken. I will investigate it later today.

@github-actions

This comment has been minimized.

2 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@sobolevn
Copy link
Member Author

stdlib/selectors.pyi:68: error: Value of type "Type[type]" is not indexable

Is the error to investigate.

@sobolevn
Copy link
Member Author

Also the problem with nested Union[Union[]] and stubtest

@sobolevn
Copy link
Member Author

Ok, I don't know why this happens and how to fix it:

 error: selectors.DefaultSelector variable differs from runtime type abc.ABCMeta
Stub: at line 68
Union[Type[selectors.KqueueSelector], Type[selectors.DevpollSelector], Type[selectors.SelectSelector], Type[selectors.PollSelector], Type[selectors.EpollSelector]]
Runtime: at line 442 in file /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/selectors.py
<class 'selectors.EpollSelector'>

I will create a new issue in mypy. Sorry for the noise! 🙏

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@AlexWaygood
Copy link
Member

My whole inbox rn:
Screenshot_20220130-160631_Email

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@sobolevn
Copy link
Member Author

@AlexWaygood I am sorry 😞

@AlexWaygood
Copy link
Member

@AlexWaygood I am sorry 😞

Don't be, it's fine 😄 I should probably adjust my email notification settings more than anything else

@srittau srittau added the status: deferred Issue or PR deferred until some precondition is fixed label Feb 2, 2022
@srittau
Copy link
Collaborator

srittau commented Feb 2, 2022

I added the "deferred" label for now, until the mypy issues are sorted out.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: deferred Issue or PR deferred until some precondition is fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants