Skip to content

Commit b6e75db

Browse files
committed
Remove unreachable code
1 parent a50944a commit b6e75db

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

linearmodels/iv/model.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,6 @@ def predict(
297297
if endog is not None:
298298
endog = IVData(endog).pandas
299299
if data is not None:
300-
if endog is not None or exog is not None:
301-
raise ValueError(
302-
"Predictions can be constructed using either exog and endog "
303-
"or data, but not both."
304-
)
305300
parser = IVFormulaParser(self.formula, data, eval_env=eval_env)
306301
exog = parser.exog
307302
endog = parser.endog

0 commit comments

Comments
 (0)