Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fredlllll opened this issue Jul 10, 2017 · 0 comments
Open

Comments

@fredlllll
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant