Skip to content

project_json_capabilites is very messy #291

@FAReTek1

Description

@FAReTek1

I have had issues when I have been trying to edit the project_json_capabilites.py file due to the nature that it has been coded. PyCharm really dislikes the code because it is full of stuff that the pep doesn't like:
image
image
37 warnings and 57 weak warnings!!!
image
overriding a builtin name!!
image
How is this readable?!?!?!?!?!?!? It's almost like a poem with its references that go to the left and right

Regardless of that, the methods are filled with 'potentially non-existent' attributes like self.sprite which are not defaulted to None , which makes code completion extremely unhelpful as these attributes are not listed, and it makes it very ugly as there are yellow underlines everywhere.

I have my own project json capabilites library called sbeditor and have a decent amount of experience with project json editing using scripts. the project_json_capabilites file is one I would really like to contribute to however these issues are making it really hard for me to edit. I may make a pr in response to this issue to address this

sorry if this seems like a rant

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions