mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Enable Ruff PGH rules (#13304)
This commit is contained in:
@@ -394,7 +394,7 @@ class MultiHeadAttention(Layer[Any, tf.Tensor]):
|
||||
name: str | None = None,
|
||||
) -> None: ...
|
||||
# @override
|
||||
@overload # type: ignore
|
||||
@overload # type: ignore[override]
|
||||
def __call__(
|
||||
self,
|
||||
query: tf.Tensor,
|
||||
|
||||
@@ -23,7 +23,7 @@ class Metric(tf.keras.layers.Layer[tf.Tensor, tf.Tensor], metaclass=ABCMeta):
|
||||
def result(self) -> _Output: ...
|
||||
# Metric inherits from keras.Layer, but its add_weight method is incompatible with the one from "Layer".
|
||||
@override
|
||||
def add_weight( # type: ignore
|
||||
def add_weight( # type: ignore[override]
|
||||
self,
|
||||
name: str,
|
||||
shape: Iterable[int | None] | None = (),
|
||||
|
||||
Reference in New Issue
Block a user