Skip to content

Commit

Permalink
fix type annotation of .shape (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoureldinYosri authored Feb 13, 2025
2 parents 05d5eb4 + 2538d73 commit e5fd5d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tunits/core/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ from typing import ClassVar, Sequence, Any, Callable, Iterator, overload, Generi
import abc
from attrs import frozen
from typing_extensions import TypeVar
from numpy._typing import _ShapeLike
from numpy.typing import NDArray, DTypeLike
import numpy as np

Expand Down Expand Up @@ -337,7 +336,7 @@ class ValueArray(Generic[ValueType2], WithUnit):
@property
def ndim(self) -> int: ...
@property
def shape(self) -> _ShapeLike: ...
def shape(self) -> tuple[int, ...]: ...
def __abs__(self: ArrayType) -> ArrayType: ...
def __divmod__(self: ArrayType, other: Any) -> tuple[_NUMERICAL_TYPE_OR_ARRAY, ArrayType]: ...
def __add__(self: ArrayType, other: Any) -> ArrayType: ...
Expand Down

0 comments on commit e5fd5d8

Please sign in to comment.