Commit Graph

12 Commits

Author SHA1 Message Date
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