diff options
Diffstat (limited to 'tests/testdata/python3/data')
| -rw-r--r-- | tests/testdata/python3/data/module_dict_items_call/models.py | 5 | ||||
| -rw-r--r-- | tests/testdata/python3/data/module_dict_items_call/test.py | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/testdata/python3/data/module_dict_items_call/models.py b/tests/testdata/python3/data/module_dict_items_call/models.py new file mode 100644 index 00000000..212bc011 --- /dev/null +++ b/tests/testdata/python3/data/module_dict_items_call/models.py @@ -0,0 +1,5 @@ +import re + + +class MyModel: + class_attribute = 1 diff --git a/tests/testdata/python3/data/module_dict_items_call/test.py b/tests/testdata/python3/data/module_dict_items_call/test.py new file mode 100644 index 00000000..4a52b18e --- /dev/null +++ b/tests/testdata/python3/data/module_dict_items_call/test.py @@ -0,0 +1,7 @@ +import models + + +def func(): + for _, value in models.__dict__.items(): + if isinstance(value, type): + value.class_attribute += 1 |
