mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Reenable flake8-pyi's Y011 and Y015 (#9551)
This commit is contained in:
@@ -109,8 +109,8 @@ class Variable(Tensor, metaclass=_VariableMetaclass):
|
||||
dtype: _DTypeLike | None = None,
|
||||
import_scope: str | None = None,
|
||||
constraint: Callable[[Tensor], Tensor] | None = None,
|
||||
synchronization: VariableSynchronization = VariableSynchronization.AUTO,
|
||||
aggregation: VariableAggregation = VariableAggregation.NONE,
|
||||
synchronization: VariableSynchronization = ...,
|
||||
aggregation: VariableAggregation = ...,
|
||||
shape: _ShapeLike | None = None,
|
||||
experimental_enable_variable_lifting: _bool = True,
|
||||
) -> None: ...
|
||||
@@ -121,9 +121,7 @@ class RaggedTensor(metaclass=ABCMeta):
|
||||
self, axis: _TensorCompatible | None = None, name: str | None = None, out_type: _DTypeLike | None = None
|
||||
) -> Tensor: ...
|
||||
@classmethod
|
||||
def from_sparse(
|
||||
cls, st_input: SparseTensor, name: str | None = None, row_splits_dtype: _DTypeLike = int64
|
||||
) -> RaggedTensor: ...
|
||||
def from_sparse(cls, st_input: SparseTensor, name: str | None = None, row_splits_dtype: _DTypeLike = ...) -> RaggedTensor: ...
|
||||
def to_sparse(self, name: str | None = None) -> SparseTensor: ...
|
||||
def to_tensor(
|
||||
self, default_value: float | str | None = None, name: str | None = None, shape: _ShapeLike | None = None
|
||||
|
||||
Reference in New Issue
Block a user