Skip to content

Commit

Permalink
(mypy) Replace Union[None,...] with Optional[...] for function params
Browse files Browse the repository at this point in the history
  • Loading branch information
teabolt committed Jul 11, 2019
1 parent 913d415 commit e8a34f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eli5/keras/gradcam.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _calc_gradient(ys, xs):


def _get_target_prediction(targets, estimator):
# type: (Union[None, list], Model) -> K.variable
# type: (Optional[list], Model) -> K.variable
"""
Get a prediction ID based on ``targets``,
from the model ``estimator`` (with a rank 2 tensor for its final layer).
Expand Down

0 comments on commit e8a34f1

Please sign in to comment.