Skip to content

Commit f6ea3e0

Browse files
committed
fix mypy erorr
1 parent 5dc80a5 commit f6ea3e0

File tree

2 files changed

+5
-50
lines changed

2 files changed

+5
-50
lines changed

pysatl_criterion/statistics/__init__.py

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -33,48 +33,6 @@
3333
WeExponentialityGofStatistic,
3434
WongWongExponentialityGofStatistic,
3535
)
36-
from pysatl_criterion.statistics.log_normal import (
37-
AbstractLogNormalGofStatistic,
38-
AndersonDarlingLogNormalGofStatistic,
39-
BonettSeierLogNormalGofStatistic,
40-
BontempsMeddahi1LogNormalGofStatistic,
41-
BontempsMeddahi2LogNormalGofStatistic,
42-
CabanaCabana1LogNormalGofStatistic,
43-
CabanaCabana2LogNormalGofStatistic,
44-
ChenShapiroLogNormalGofStatistic,
45-
CoinLogNormalGofStatistic,
46-
CramerVonMiseLogNormalGofStatistic,
47-
DagostinoLogNormalGofStatistic,
48-
DAPLogNormalGofStatistic,
49-
DesgagneLafayeLogNormalGofStatistic,
50-
DoornikHansenLogNormalGofStatistic,
51-
EppsPulleyLogNormalGofStatistic,
52-
FilliLogNormalGofStatistic,
53-
GlenLeemisBarrLogNormalGofStatistic,
54-
GMGLogNormalGofStatistic,
55-
Hosking1LogNormalGofStatistic,
56-
Hosking2LogNormalGofStatistic,
57-
Hosking3LogNormalGofStatistic,
58-
Hosking4LogNormalGofStatistic,
59-
JBLogNormalGofStatistic,
60-
KolmogorovSmirnovLogNormalGofStatistic,
61-
KurtosisLogNormalGofStatistic,
62-
LillieforsLogNormalGofStatistic,
63-
LooneyGulledgeLogNormalGofStatistic,
64-
MartinezIglewiczLogNormalGofStatistic,
65-
QuesenberryMillerLogNormalGofStatistic,
66-
RobustJarqueBeraLogNormalGofStatistic,
67-
RyanJoinerLogNormalGofStatistic,
68-
SFLogNormalGofStatistic,
69-
ShapiroWilkLogNormalGofStatistic,
70-
SkewLogNormalGofStatistic,
71-
SpiegelhalterLogNormalGofStatistic,
72-
SWRGLogNormalGofStatistic,
73-
ZhangQLogNormalGofStatistic,
74-
ZhangQStarLogNormalGofStatistic,
75-
ZhangWuALogNormalGofStatistic,
76-
ZhangWuCLogNormalGofStatistic,
77-
)
7836
from pysatl_criterion.statistics.models import AbstractStatistic
7937
from pysatl_criterion.statistics.normal import (
8038
AbstractNormalityGofStatistic,
@@ -118,6 +76,7 @@
11876
ZhangWuANormalityGofStatistic,
11977
ZhangWuCNormalityGofStatistic,
12078
)
79+
from pysatl_criterion.statistics.log_normal import *
12180
from pysatl_criterion.statistics.weibull import (
12281
AbstractWeibullGofStatistic,
12382
AndersonDarlingWeibullGofStatistic,
@@ -141,7 +100,6 @@
141100
WPPWeibullGofStatistic,
142101
)
143102

144-
145103
__all__ = [
146104
"AbstractStatistic",
147105
"ADStatistic",

pysatl_criterion/statistics/log_normal.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
from typing_extensions import override
77

88
from pysatl_criterion.statistics import normal
9-
from pysatl_criterion.statistics.common import (
10-
CrammerVonMisesStatistic,
11-
KSStatistic,
12-
)
9+
from pysatl_criterion.statistics.common import CrammerVonMisesStatistic, KSStatistic
1310
from pysatl_criterion.statistics.goodness_of_fit import AbstractGoodnessOfFitStatistic
1411
from pysatl_criterion.statistics.normal import AbstractNormalityGofStatistic
1512

@@ -147,7 +144,7 @@ def code():
147144

148145
# List of Normal statistics that we have explicitly implemented for LogNormal above.
149146
# We should NOT generate dynamic wrappers for these.
150-
EXPLICITLY_IMPLEMENTED_NORMAL_STATS = [
147+
_EXPLICITLY_IMPLEMENTED_NORMAL_STATS = [
151148
"KolmogorovSmirnovNormalityGofStatistic",
152149
"CramerVonMiseNormalityGofStatistic",
153150
"QuesenberryMillerNormalityGofStatistic",
@@ -158,7 +155,7 @@ def code():
158155
__all__ = [
159156
"AbstractLogNormalGofStatistic",
160157
"KolmogorovSmirnovLogNormalGofStatistic",
161-
"CramerVonMiseLogNormalityGofStatistic",
158+
"CramerVonMiseLogNormalGofStatistic",
162159
"QuesenberryMillerLogNormalGofStatistic",
163160
]
164161

@@ -167,7 +164,7 @@ def code():
167164
inspect.isclass(obj)
168165
and issubclass(obj, AbstractNormalityGofStatistic)
169166
and obj is not AbstractNormalityGofStatistic
170-
and name not in EXPLICITLY_IMPLEMENTED_NORMAL_STATS
167+
and name not in _EXPLICITLY_IMPLEMENTED_NORMAL_STATS
171168
and not name.startswith("Abstract")
172169
and not name.startswith("Graph")
173170
):

0 commit comments

Comments
 (0)