8000 fix: add dict as return type of serialize. · python/typeshed@d25b89f · GitHub
[go: up one dir, main page]

Skip to content

Commit d25b89f

Browse files
committed
fix: add dict as return type of serialize.
1 parent 04e6a5b commit d25b89f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/tensorflow/tensorflow/keras/activations.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def relu(
2828
threshold: FloatTensorCompatible | FloatDataSequence = 0.0,
2929
) -> Tensor: ...
3030
def selu(x: _ActivationInput) -> Tensor: ...
31-
def serialize(activation: Callable[..., Any], use_legacy_format: bool = False) -> str: ...
31+
def serialize(activation: Callable[..., Any], use_legacy_format: bool = False) -> str | dict[str, str]: ...
3232
def sigmoid(x: _ActivationInput) -> Tensor: ...
3333
def softmax(x: Tensor, axis: Integer = -1) -> Tensor: ...
3434
def softplus(x: _ActivationInput) -> Tensor: ...

0 commit comments

Comments
 (0)
0