Commit 8364693
authored
Fix in place properties (#2553)
* fix construction of in-place properties
This is an example of an in-place property: `bar = property(getter)`.
They just create a nameless object, not the one with the name of
the getter. Thus, the name was changed to
"<property>". Furthermore, the definition of that property is not
attached to any scope, as it's again nameless.
it's a part of the campaign to get rid of non-module roots1 parent 20890b8 commit 8364693
File tree
2 files changed
+12
-8
lines changed- astroid/brain
- tests/brain
2 files changed
+12
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
| 648 | + | |
649 | 649 | | |
650 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
651 | 656 | | |
652 | | - | |
653 | | - | |
654 | 657 | | |
655 | 658 | | |
656 | 659 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
0 commit comments