Skip to content

Commit

Permalink
Fixed NoneType assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
tgsmith61591 committed Nov 12, 2016
1 parent 89aa796 commit 0ea84d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion skutil/utils/fixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import pandas as pd
import sklearn
import sys
from types import NoneType
from abc import ABCMeta, abstractmethod
from sklearn.base import BaseEstimator, MetaEstimatorMixin, is_classifier, clone
from sklearn.externals import six
Expand Down Expand Up @@ -656,7 +657,7 @@ def _fit(self, X, y, parameter_iterable):

# for debugging
assert isinstance(X, np.ndarray)
assert isinstance(y, (np.ndarray, None))
assert isinstance(y, (np.ndarray, NoneType))

# begin sklearn code
estimator = self.estimator
Expand Down

0 comments on commit 0ea84d6

Please sign in to comment.