It is best practice to have all attributes defined within __init__. self.reversed_axis_order (line 128) and self.key_reinit (line 186) are attributes defined outside __init__. This is ok if there is a good reason for doing it this way, but it would be better to not define attributes outside __init__ if we can avoid it. We could either remove the self and make these local variables or initialize them to None in __init__.
It is best practice to have all attributes defined within
__init__
.self.reversed_axis_order
(line 128) andself.key_reinit
(line 186) are attributes defined outside__init__
. This is ok if there is a good reason for doing it this way, but it would be better to not define attributes outside__init__
if we can avoid it. We could either remove theself
and make these local variables or initialize them toNone
in__init__
.