Commit Graph

19 Commits

Author SHA1 Message Date
Ekaterina Tuzova
ce7c8cdc46 fixed tests since we don't propose to make static decorated method 2013-12-02 21:25:20 +04:00
Ekaterina Tuzova
33a3ecf730 PY-9365 Make function from method: leads to unresolved attribute reference for method usages in class 2013-10-10 18:25:33 +04:00
Ekaterina Tuzova
ddb0d98b13 extracted augment assignment tests 2013-10-10 17:45:17 +04:00
Ekaterina Tuzova
14f55f9984 PY-10988 Instance attribute defined outside __init__ with property setter 2013-10-04 20:26:00 +04:00
Ekaterina Tuzova
6e563e5380 fixed PY-9365 Make function from method: leads to unresolved attribute reference for method usages in class 2013-09-23 20:56:32 +04:00
Ekaterina Tuzova
92415cade1 fixed PY-9263 Move attribute to init method: add super class call when moving to not yet existing init 2013-09-09 15:46:27 +04:00
Ekaterina Tuzova
2afdd5cefb fixed PY-9656 Make function from method: update import statements 2013-05-30 19:34:47 +04:00
Ekaterina Tuzova
536d978917 fixed PY-9654 Make function from method/Make method static: correctly update class calls with first instance argument 2013-05-29 16:35:09 +04:00
Ekaterina Tuzova
b2a2abbce5 fixed PY-9654 Make function from method/Make method static: correctly update class calls with first instance argument 2013-05-29 16:00:26 +04:00
Ekaterina Tuzova
bf71eaac4c update usages after converting method to function 2013-04-25 13:04:11 +04:00
Ekaterina Tuzova
367f6d4bb6 fixed test data 2013-04-10 19:24:42 +04:00
Ekaterina Tuzova
6eb69aa83a fixed PY-9405 Method can be static: handle existing decorators 2013-04-09 14:41:50 +04:00
Ekaterina Tuzova
913e96ea0e fixed PY-9406 Make function from method: when removing last method from class add pass statement 2013-04-09 14:08:09 +04:00
Ekaterina Tuzova
1fa5b3bfd6 added Method may be static or a function (+ quickfix) 2013-03-26 15:48:16 +04:00
Ekaterina Tuzova
097ed48b0a fixed PY-9263 Move attribute to init method: add super class call when moving to not yet existing init
reused AddFieldQuickFix logic
2013-03-25 15:58:12 +04:00
Ekaterina Tuzova
9750faf20d fixed PY-9253 Broken "add field to class" adds the field to the instance instead.
moved tests to the separate testCase
2013-03-22 18:13:13 +04:00
Ekaterina Tuzova
00eafcb011 added tests for PyUtil.addElementToStatementList 2013-03-22 15:44:17 +04:00
Ekaterina Tuzova
eafde14771 implemented W0232: Class has no __init__ method
extracted logic for "add element to statement list" into PyUtil
reused in PyMoveAttributeToInitQuickFix and PyClassHasNoInitInspection

reused AddMethodQuickFix in PyClassHasNoInitInspection
2013-03-22 14:13:18 +04:00
Ekaterina Tuzova
51ca2375f2 added quick fix for the PyAttributeOutsideInitInspection 2013-03-21 17:12:12 +04:00