Skip to content

Commit

Permalink
Further pylint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stevelaskaridis committed Oct 21, 2023
1 parent 1f3ef97 commit e3f1a06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion baselines/fjord/fjord/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def get_lr_scheduler(
optimiser: Optimizer,
total_epochs: int,
method: Optional[str] = "static",
) -> torch.optim.lr_scheduler._LRScheduler:
) -> torch.optim.lr_scheduler.LRScheduler:
"""Get the learning rate scheduler.
:param optimiser: The optimiser for which to get the scheduler.
Expand Down
2 changes: 1 addition & 1 deletion baselines/fjord/fjord/od/samplers/base_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def prepare_sampler(self) -> None:
self.widths.append(m.width)
self.od_layers.append(m)

def width_sampler(self) -> Generator:
def width_sampler(self) -> Generator: # pylint: disable=no-self-use
"""Sample width."""
while True:
yield None
Expand Down

0 comments on commit e3f1a06

Please sign in to comment.