jettify / pytorch-optimizer

Bad first argument given in super() call PYL-E1003
Bug risk
Critical
2 occurrences in this check
Bad first argument 'AdaBound' given to super()
 87        self.base_lrs = [group['lr'] for group in self.param_groups]
 88
 89    def __setstate__(self, state: State) -> None:
 90        super(AdaBound, self).__setstate__(state) 91        for group in self.param_groups:
 92            group.setdefault('amsbound', False)
 93
Bad first argument 'AdaBound' given to super()
 83            weight_decay=weight_decay,
 84            amsbound=amsbound,
 85        )
 86        super(AdaBound, self).__init__(params, defaults) 87        self.base_lrs = [group['lr'] for group in self.param_groups]
 88
 89    def __setstate__(self, state: State) -> None: