Skip to content

Acknowledge __all__ - #1640

Merged
gvanrossum merged 4 commits into
python:masterfrom
refi64:all
Jun 4, 2016
Merged

gvanrossum merged 4 commits into
python:masterfrom
refi64:all

Conversation

@refi64

@refi64 refi64 commented Jun 3, 2016

Copy link
Copy Markdown
Contributor

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

@gvanrossum

Copy link
Copy Markdown
Member

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

Comment thread 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
Copy Markdown
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
Copy Markdown
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

refi64 commented Jun 4, 2016 •

Copy link
Copy Markdown
Contributor Author

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

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

Copy link
Copy Markdown
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