Skip to content

Commit

Permalink
revert pyright fix and ignore some typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonkoehn committed Nov 6, 2023
1 parent 1c36307 commit 3e5b062
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pytest-cov = "^4.0.0"
pytest-xdist = "^3.2.0"
pre-commit = "^3.1.0"
interrogate = "^1.5.0"
pyright = "^1.1.309, <1.1.334" # 1.1.334 calls some false-positive errors in visualize/_mcmc.
pyright = "^1.1.309"
mkdocs-material = "^9.1.6"
mkdocstrings = {extras = ["python"], version = "^0.21.2"}
mkdocs-gen-files = "^0.4.0"
Expand Down
4 changes: 2 additions & 2 deletions src/pyggdrasil/visualize/_mcmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _ax_log_p_iteration(

ax.set_xlabel("Iteration")
ax.set_ylabel(r"$\log(P(D|T,\theta))$")
ax.plot(iterations, log_probs, color="black")
ax.plot(iterations, log_probs, color="black") # type: ignore
ax.tick_params(axis="y", labelcolor="black")

return ax
Expand Down Expand Up @@ -108,7 +108,7 @@ def _ax_dist_iteration(
ax.set_xlabel("Iteration")
# get name of distance measure
ax.set_ylabel(metric_name)
ax.plot(iteration, distances, color="black", label=metric_name)
ax.plot(iteration, distances, color="black", label=metric_name) # type: ignore
ax.tick_params(axis="y", labelcolor="black")
# ax.legend(loc="upper right")

Expand Down

0 comments on commit 3e5b062

Please sign in to comment.