From d142d2a14398753c8e58f42c98fd2a80a921e50f Mon Sep 17 00:00:00 2001 From: pnxenopoulos Date: Thu, 20 Jun 2024 16:39:22 -0400 Subject: [PATCH] fix lints --- awpy/cli.py | 3 ++- awpy/vis/plot.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/awpy/cli.py b/awpy/cli.py index 84138caa..c4f69ad7 100644 --- a/awpy/cli.py +++ b/awpy/cli.py @@ -27,7 +27,8 @@ def get(resource_type: Literal["usd"], resource_name: str) -> None: if resource_name == "all": logger.info("Getting all USDs...") else: - logger.info(f"Getting USD for {resource_name}...") + getting_specific_usd_msg = f"Getting USD for {resource_name}..." + logger.info(getting_specific_usd_msg) @awpy.command(help="Parse a Counter-Strike 2 demo file.") diff --git a/awpy/vis/plot.py b/awpy/vis/plot.py index 5c7cd84d..81b4d322 100644 --- a/awpy/vis/plot.py +++ b/awpy/vis/plot.py @@ -60,7 +60,7 @@ def plot_upper_and_lower(map_name: str) -> tuple[Figure, list[Axes]]: map_names = [map_name, f"{map_name}_lower"] figure, axes = plt.subplots(1, 2) # , figsize=(2 * 5, 5) - for ax, map_layer_name in zip(axes, map_names): + for ax, map_layer_name in zip(axes, map_names, strict=True): with importlib.resources.path( "awpy.data.maps", f"{map_layer_name}.png" ) as map_img_path: