pycharm-blender icon indicating copy to clipboard operation
pycharm-blender copied to clipboard

missing "self"s and unnecessary "types." plus other small errors

Open fredlllll opened this issue 7 years ago • 0 comments

when generating the special classes, the methods dont have a self argument. this leads to errors in pycharm. to fix this by hand i used a regex in notepad++ to insert the missing selfs:

find: def (?[^(]+)((?!self|cls)(?[^)]*)): replace: def $1(self, $2):

this adds the selfs in the missing positions.

next issue: some types are derived from other classes. they have something along the lines class blabla(types.blublu):

removing "types." in the whole document fixes that.

then there are still a few little things that are more easily fixed by hand: 2 times a parameter with default value is placed before parameters without. i just added ="" to each of those some classes have a . in the name. i replaced it with _

i know that you are probably not actively working on this, but maybe you can find the motivation to look over it

fredlllll avatar Jul 10 '17 14:07 fredlllll