Skip to content

Commit

Permalink
🚧 stats: temporarily ignore stubtest errors of unfinished stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham committed Dec 20, 2024
1 parent 4c84d62 commit cc15c07
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
1 change: 1 addition & 0 deletions .mypyignore-todo
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
scipy\.stats\.__all__
scipy\.stats\.(Normal|Uniform)
scipy\.stats\.(_distribution_infrastructure\.)?(abs|exp|log|make_distribution|order_statistic|truncate)
scipy\.stats\._distribution_infrastructure\.((Monotonic)?Transformed|Folded|Truncated|OrderStatistic)Distribution\.__init__
8 changes: 5 additions & 3 deletions scipy-stubs/stats/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ from ._multivariate import (
vonmises_fisher,
wishart,
)
from ._new_distributions import Normal, Uniform

# TODO(jorenham)
# `from ._new_distributions import Normal, Uniform
from ._page_trend_test import page_trend_test
from ._resampling import (
BootstrapMethod,
Expand Down Expand Up @@ -309,9 +311,9 @@ __all__ = [
"Mixture",
"MonteCarloMethod",
"NearConstantInputWarning",
"Normal",
# "Normal",
"PermutationMethod",
"Uniform",
# "Uniform",
# "abs",
"alexandergovern",
"alpha",
Expand Down
15 changes: 15 additions & 0 deletions scipy-stubs/stats/_new_distributions.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from ._distribution_infrastructure import ContinuousDistribution

__all__ = ["Normal", "Uniform"]

class Normal(ContinuousDistribution):
# TODO(jorenham)
...

class StandardNormal(Normal):
# TODO(jorenham)
...

class Uniform(ContinuousDistribution):
# TODO(jorenham)
...

0 comments on commit cc15c07

Please sign in to comment.