Skip to content

Commit

Permalink
🩹 add missing __all__
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham committed Jan 1, 2025
1 parent 381c74d commit e29c62b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scipy-stubs/spatial/transform/rotation.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ from typing_extensions import deprecated

from . import _rotation

__all__ = ["Rotation", "Slerp"]

@deprecated("will be removed in SciPy v2.0.0")
class Rotation(_rotation.Rotation): ...

Expand Down
8 changes: 8 additions & 0 deletions scipy-stubs/stats/_mgc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import optype.numpy as onp
from scipy._typing import ToRNG
from ._typing import BaseBunch

__all__ = ["multiscale_graphcorr"]

###

_T = TypeVar("_T")
_R = TypeVar("_R")

Expand All @@ -16,13 +20,17 @@ class _MGCDict(TypedDict):
opt_scale: Sequence[int | np.intp] # list of size 2
null_dist: onp.Array1D[np.float64]

###

class MGCResult(BaseBunch[np.float64, np.float64, _MGCDict]):
@property
def statistic(self, /) -> np.float64: ...
@property
def pvalue(self, /) -> np.float64: ...
@property
def mgc_dict(self, /) -> _MGCDict: ...

#
def __new__(_cls, statistic: np.float64, pvalue: np.float64, mgc_dict: _MGCDict) -> Self: ...
def __init__(self, /, statistic: np.float64, pvalue: np.float64, mgc_dict: _MGCDict) -> None: ...

Expand Down

0 comments on commit e29c62b

Please sign in to comment.