Skip to content

Commit 4232b45

Browse files
committed
Formatting
1 parent cc2d587 commit 4232b45

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

ci/check_typeignore.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
import sys
1414
from typing import List
1515

16-
import click
17-
1816
# Regex to match a "# type: ignore" comment not followed by a reason.
1917
TYPE_IGNORE_COMMENT = re.compile(r"#\s*type:\s*ignore\s*(?![^\[]*\[)")
2018

@@ -75,6 +73,7 @@ def parse_args():
7573
args = parser.parse_args()
7674
return parser, args
7775

76+
7877
def main():
7978
"""Check for invalid "# type: ignore" comments."""
8079
parser, args = parse_args()

ci/clean_notebooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def parse_args():
9090

9191

9292
def get_files(input_paths: List):
93-
"""build list of files to scan from list of paths and files"""
93+
"""Build list of files to scan from list of paths and files."""
9494
files = []
9595
for file in input_paths:
9696
if file.is_dir():

src/imitation/policies/replay_buffer_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import numpy as np
66
from gym import spaces
7-
from stable_baselines3.common.buffers import BaseBuffer, ReplayBuffer
7+
from stable_baselines3.common.buffers import ReplayBuffer
88
from stable_baselines3.common.type_aliases import ReplayBufferSamples
99

1010
from imitation.rewards.reward_function import RewardFn

src/imitation/util/util.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,8 @@ def make_seeds(
177177
Returns:
178178
A list of n random seeds.
179179
"""
180-
seeds: List[int] = rng.integers(
181-
0, (1 << 31) - 1, (n if n is not None else 1,)
182-
).tolist()
180+
seeds_arr = rng.integers(0, (1 << 31) - 1, (n if n is not None else 1,))
181+
seeds: List[int] = seeds_arr.tolist()
183182
if n is None:
184183
return seeds[0]
185184
else:

0 commit comments

Comments
 (0)