Closed pylint-bot closed 8 years ago
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: PCManticore):
Working on this in bookmark 2.0.
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: PCManticore):
.scope() returns the proper scope for Arguments's default values, function annotations and comprehensions. Closes issue #211.
Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: PCManticore)
For instance, for a default value, astroid will return the function where it is used as its scope, but that's wrong, since the scope is actual the scope of the parent of the function.
This is also true for the function annotation values.