From d835573fe70d9e52945af080a8d60e8632d69c67 Mon Sep 17 00:00:00 2001
From: Joel Nothman <joel.nothman@gmail.com>
Date: Wed, 13 Sep 2017 09:26:28 +1000
Subject: [PATCH] MAINT comment on apparent inconsistency

---
 sklearn/pipeline.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sklearn/pipeline.py b/sklearn/pipeline.py
index 61d0c42cc0..4ec08a4223 100644
--- a/sklearn/pipeline.py
+++ b/sklearn/pipeline.py
@@ -414,6 +414,7 @@ class Pipeline(_BaseComposition):
         Xt : array-like, shape = [n_samples, n_transformed_features]
         """
         # _final_estimator is None or has transform, otherwise attribute error
+        # XXX: Handling the None case means we can't use if_delegate_has_method
         if self._final_estimator is not None:
             self._final_estimator.transform
         return self._transform
@@ -444,6 +445,7 @@ class Pipeline(_BaseComposition):
         Xt : array-like, shape = [n_samples, n_features]
         """
         # raise AttributeError if necessary for hasattr behaviour
+        # XXX: Handling the None case means we can't use if_delegate_has_method
         for name, transform in self.steps:
             if transform is not None:
                 transform.inverse_transform
-- 
GitLab