Skip to content

Commit

Permalink
[WIP] fix mypy errors (arviz-devs#1586)
Browse files Browse the repository at this point in the history
* Changed type ints for var_names

* fix mypy errors
  • Loading branch information
utkarsh-maheshwari committed May 27, 2021
1 parent 58747e5 commit dc4a6f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions arviz/plots/traceplot.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Plot kde or histograms and values from MCMC samples."""
import warnings
from typing import Any, Callable, List, Mapping, Optional, Tuple, Union
from typing import Any, Callable, List, Mapping, Optional, Tuple, Union, Sequence

from ..data import CoordSpec, InferenceData, convert_to_dataset
from ..labels import BaseLabeller
Expand All @@ -12,7 +12,7 @@

def plot_trace(
data: InferenceData,
var_names: Optional[List[str]] = None,
var_names: Optional[Sequence[str]] = None,
filter_vars: Optional[str] = None,
transform: Optional[Callable] = None,
coords: Optional[CoordSpec] = None,
Expand Down
3 changes: 2 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import os
import re
import sys
from typing import Dict

sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
import arviz
Expand Down Expand Up @@ -181,7 +182,7 @@

# -- Options for LaTeX output ---------------------------------------------

latex_elements = {
latex_elements : Dict[str, str] = {
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',
Expand Down

0 comments on commit dc4a6f1

Please sign in to comment.