Skip to content

Make exceptions.pyi import its definitions from __builtin__.pyi #1610

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 3 commits into from
Sep 15, 2017
Merged

Make exceptions.pyi import its definitions from __builtin__.pyi #1610

merged 3 commits into from
Sep 15, 2017

Conversation

rchen152
Copy link
Collaborator

There were previously two copies of the exception classes, one in exceptions.pyi and one in builtin.pyi.

@matthiaskramm matthiaskramm merged commit c009caf into python:master Sep 15, 2017
@rchen152 rchen152 deleted the exceptions branch September 15, 2017 22:01
@@ -1,80 +1,49 @@
from typing import Any, Tuple, Optional
from __builtin__ import ArithmeticError
Copy link
Member

Choose a reason for hiding this comment

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

This needs to be ArithmeticError as ArithmeticError so that the name is re-exported from this module.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah, that's the test failure was about. I'll send another pull request.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

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.

3 participants