Skip to content

😋 Import from collections.abc instead of from typing. #82

😋 Import from collections.abc instead of from typing.

😋 Import from collections.abc instead of from typing. #82

Triggered via push January 5, 2024 02:53
Status Failure
Total duration 2m 24s
Artifacts

typecheck.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
type-check: koila/core/common.py#L13
Method "__str__" overrides class "TensorLike" in an incompatible manner   Return type mismatch: base method returns type "str", override returns type "None"     "None" is incompatible with "str" (reportIncompatibleMethodOverride)
type-check: koila/core/common.py#L13
Method "__str__" overrides class "object" in an incompatible manner   Return type mismatch: base method returns type "str", override returns type "None"     "None" is incompatible with "str" (reportIncompatibleMethodOverride)
type-check: koila/core/delayed.py#L25
Expression of type "TensorLike" cannot be assigned to return type "Tensor"   "TensorLike" is incompatible with "Tensor" (reportGeneralTypeIssues)
type-check: koila/core/delayed.py#L10
Class derives from one or more protocol classes but does not implement all required members   Member "logical_not" is declared in protocol class "Arithmetic"   Member "__getitem__" is declared in protocol class "Indexible"   Member "__setitem__" is declared in protocol class "Indexible"   Member "size" is declared in protocol class "MultiDimensional"   Member "dtype" is declared in protocol class "DataType"   Member "device" is declared in protocol class "DataType"   Member "data" is declared in protocol class "TensorLike"   Member "item" is declared in protocol class "TensorLike" ... (reportGeneralTypeIssues)
type-check: koila/core/eager.py#L6
Base classes for class "EagerTensor" define variable "requires_grad" in incompatible way (reportIncompatibleVariableOverride)
type-check: koila/core/eager.py#L6
Base classes for class "EagerTensor" define variable "shape" in incompatible way (reportIncompatibleVariableOverride)
type-check: koila/core/eager.py#L6
Base classes for class "EagerTensor" define variable "data" in incompatible way (reportIncompatibleVariableOverride)
type-check: koila/core/eager.py#L6
Base classes for class "EagerTensor" define variable "device" in incompatible way (reportIncompatibleVariableOverride)
type-check: koila/core/eager.py#L6
Base classes for class "EagerTensor" define variable "T" in incompatible way (reportIncompatibleVariableOverride)
type-check: koila/core/eager.py#L6
Base classes for class "EagerTensor" define variable "ndim" in incompatible way (reportIncompatibleVariableOverride)
type-check: koila/interfaces/runnable.py#L15
Type variable "T" used in generic protocol "Runnable" should be covariant (reportInvalidTypeVarUse)
type-check: koila/interfaces/components/indexible.py#L10
Type variable "K" used in generic protocol "Indexible" should be contravariant (reportInvalidTypeVarUse)