Remove @override annotations (#14806)

This commit is contained in:
Sebastian Rittau
2025-09-30 13:47:57 +02:00
committed by GitHub
parent 602da37de8
commit 6a7f3190b1
17 changed files with 6 additions and 66 deletions
@@ -395,7 +395,6 @@ class MultiHeadAttention(Layer[Any, tf.Tensor]):
autocast: bool = True,
name: str | None = None,
) -> None: ...
# @override
@overload # type: ignore[override]
def __call__(
self,
@@ -1,7 +1,7 @@
from abc import ABCMeta, abstractmethod
from collections.abc import Callable, Iterable, Sequence
from typing import Any, Literal
from typing_extensions import Self, TypeAlias, override
from typing_extensions import Self, TypeAlias
import tensorflow as tf
from tensorflow import Operation, Tensor
@@ -21,7 +21,6 @@ class Metric(tf.keras.layers.Layer[tf.Tensor, tf.Tensor], metaclass=ABCMeta):
@abstractmethod
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[override]
self,
name: str,