Skip to content

Commit

Permalink
TYP: add missing type hints to ContourCallback.__init__
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Jun 6, 2022
1 parent 0c2af69 commit b45be4e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions yt/visualization/plot_modifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,19 +803,19 @@ class ContourCallback(PlotCallback):

def __init__(
self,
field,
field: Union[Tuple[str, str], str],
levels: int = 5,
*,
factor: Union[Tuple[int, int], int] = 4,
clim: Optional[Tuple[float, float]] = None,
label=False,
take_log=None,
data_source=None,
plot_args=None,
label_args=None,
text_args=None,
label: bool = False,
take_log: Optional[bool] = None,
data_source: YTDataContainer = None,
plot_args: Optional[Dict[str, Any]] = None,
label_args: Optional[Dict[str, Any]] = None,
text_args: Optional[Dict[str, Any]] = None,
ncont: Optional[int] = None, # deprecated
):
) -> None:
def_plot_args = {"colors": "k", "linestyles": "solid"}
def_text_args = {"colors": "w"}
if ncont is not None:
Expand Down

0 comments on commit b45be4e

Please sign in to comment.