Skip to content

Python linter compains about components (Fighter, BasicMonster) not having 'owner' member #22

Description

@tonyrobots

The Python 3.7 linter throws an error message complaining that:

Instance of 'Fighter' has no 'owner' member
and
Instance of 'BasicMonster' has no 'owner' member

It's a minor issue, and doesn't affect the actual operation of the code (i.e. it still works), but it's a bit of an annoyance. I'd propose that the following lines be added to the top of those two files in order to quiet the error:

#  This prevents the linter from complaining that the component class has no owner member (it's defined in the entity class init)
#  pylint: disable=no-member

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