Skip to content

Commit

Permalink
fix mypy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMay committed Oct 22, 2024
1 parent 2e58db7 commit 266a80b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mltb2/arangodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ def arango_collection_backup() -> None:
print(f"Writing backup to '{output_file_name}'...")

with (
closing(ArangoClient(hosts=arango_config["hosts"])) as arango_client,
gzip.open(output_file_name, "w") as gzip_out, # type: ignore[arg-type]
closing(ArangoClient(hosts=arango_config["hosts"])) as arango_client, # type: ignore[arg-type]
gzip.open(output_file_name, "w") as gzip_out,
):
connection = arango_client.db(
arango_config["db_name"], # type: ignore[arg-type]
Expand Down
4 changes: 2 additions & 2 deletions mltb2/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ def boxplot(
if ylabel is not None:
ax.set(ylabel=ylabel)

ax.boxplot(values, labels=labels, vert=vert)
ax.boxplot(values, labels=labels, vert=vert) # type: ignore[call-arg]
grid_axis = "y" if vert else "x"
plt.grid(b=True, axis=grid_axis, linestyle="--")
plt.grid(b=True, axis=grid_axis, linestyle="--") # type: ignore[arg-type]
plt.xticks(rotation=90)


Expand Down

0 comments on commit 266a80b

Please sign in to comment.