mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-01 21:50:21 +08:00
Remove @override annotations (#14806)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user