Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Uri Granta committed Jan 20, 2025
1 parent 5d32c57 commit 3c7ec1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trieste/models/keras/architectures.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
except AttributeError: # pragma: no cover (tested but not by coverage)
try:
# in TF 2.14 it's in keras but not in tf_keras (but vice versa in TF 2.16)!
from keras.src.saving.serialization_lib import SafeModeScope
from keras.src.saving.serialization_lib import SafeModeScope # type:ignore[no-redef]
except (ImportError, ModuleNotFoundError):
SafeModeScope = contextlib.nullcontext
from tensorflow_probability.python.layers.distribution_layer import DistributionLambda, _serialize
Expand Down

0 comments on commit 3c7ec1a

Please sign in to comment.