Skip to content

Commit 3592657

Browse files
committed
__package__ is accessible in every module. Close pylint-dev/pylint#1693
1 parent 08db26f commit 3592657

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroid/scoped_nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class Module(LocalsDictNodeNG):
257257
# names of python special attributes (handled by getattr impl.)
258258

259259
# names of module attributes available through the global scope
260-
scope_attrs = set(('__name__', '__doc__', '__file__', '__path__'))
260+
scope_attrs = {'__name__', '__doc__', '__file__', '__path__', '__package__'}
261261

262262
_other_fields = ('name', 'doc', 'file', 'path', 'package',
263263
'pure_python', 'future_imports')

0 commit comments

Comments
 (0)