KEMBAR78
Acknowledge __all__ by refi64 · Pull Request #1640 · python/mypy · GitHub
Skip to content

Conversation

@refi64
Copy link
Contributor

@refi64 refi64 commented Jun 3, 2016

Fixes #1606. Took me a bit of experimentation to figure out where to put the code...

@gvanrossum
Copy link
Member

You have some CI failures; "mypy mypy" fails and a few tests also fail (perhaps as fallout).

mypy/semanal.py Outdated
# Global name space for current module
globals = None # type: SymbolTable
# Globals that were mentioned in __all__ and should be module_public.
global_exports = set()
Copy link
Member

Choose a reason for hiding this comment

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

This variable is unused. Maybe you changed your mind and named it all_exports later?

Copy link
Member

Choose a reason for hiding this comment

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

Also a mutable default is a bad idea.

@refi64
Copy link
Contributor Author

refi64 commented Jun 4, 2016

@gvanrossum Fixed! Do you want me to squash the commits?

@gvanrossum gvanrossum merged commit 4513b8a into python:master Jun 4, 2016
@gvanrossum
Copy link
Member

Thanks!

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