gootsaud / bike-riding

Assignment to self or cls detected PYL-W0642
Bug risk
Major
2 years ago2 years old
Invalid assignment to args in method
814    initialized from a dictionary or with keyword arguments."""
815
816    def __init__(*args: t.Any, **kwargs: t.Any) -> None:  # noqa: B902
817        self, args = args[0], args[1:]818        self.__attrs = dict(*args, **kwargs)
819
820    def __getattribute__(self, name: str) -> t.Any:
Invalid assignment to __self in method
 335            if kwargs.get("_loop_vars"):
 336                __self = __self.derived(kwargs["_loop_vars"])
 337            if kwargs.get("_block_vars"):
 338                __self = __self.derived(kwargs["_block_vars"]) 339            args = (__self,) + args
 340        elif pass_arg is _PassArg.eval_context:
 341            args = (__self.eval_ctx,) + args
Invalid assignment to __self in method
 333            # the active context should have access to variables set in
 334            # loops and blocks without mutating the context itself
 335            if kwargs.get("_loop_vars"):
 336                __self = __self.derived(kwargs["_loop_vars"]) 337            if kwargs.get("_block_vars"):
 338                __self = __self.derived(kwargs["_block_vars"])
 339            args = (__self,) + args