Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(utility): modify "AttrsMixin" as a workaround for pylint errors
`attr()` returns `Field` as the class variables value, using type hint as the real type of variables. pylint use `Field` as the variable type, so it will report the following errors `E0237: Assigning to attribute 'box2d' not defined in class slots (assigning-non-slot)` `E1101: Instance of 'Field' has no 'box3d' member (no-member)` do the following as a workaround for pylint errors * remove `__slot__` for E0237 * add `__getattr__` function for E1101 related issue: pylint-dev/pylint#4341 PR Closed: Graviti-AI#580
- Loading branch information