This is an automated email from the ASF dual-hosted git repository.

jmalkin pushed a commit to branch density_custom_kernel
in repository https://gitbox.apache.org/repos/asf/datasketches-cpp.git

commit c343a11e5a4f2dcd6ccb9225935d05337eae0d50
Author: Jon <[email protected]>
AuthorDate: Thu Apr 13 00:29:25 2023 -0700

    Very minor cleanup in tuple python
---
 python/datasketches/TuplePolicy.py  | 2 +-
 python/datasketches/TupleWrapper.py | 5 ++---
 python/include/py_object_lt.hpp     | 2 +-
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/python/datasketches/TuplePolicy.py 
b/python/datasketches/TuplePolicy.py
index adc794a..1a209bb 100644
--- a/python/datasketches/TuplePolicy.py
+++ b/python/datasketches/TuplePolicy.py
@@ -21,7 +21,7 @@ from _datasketches import TuplePolicy
 
 # This file provides an example Python Tuple Policy implementation.
 #
-# Each implementation must extend the PyTuplePolicy class and define
+# Each implementation must extend the TuplePolicy class and define
 # two methods:
 #   * create_summary() returns a new Summary object
 #   * update_summary(summary, update) applies the relevant policy to update the
diff --git a/python/datasketches/TupleWrapper.py 
b/python/datasketches/TupleWrapper.py
index 155016f..dad63e4 100644
--- a/python/datasketches/TupleWrapper.py
+++ b/python/datasketches/TupleWrapper.py
@@ -15,13 +15,12 @@
 # specific language governing permissions and limitations
 # under the License.
 
-from abc import ABC, abstractmethod
+from abc import ABC
 
-from .TuplePolicy import TuplePolicy
 from _datasketches import _tuple_sketch, _compact_tuple_sketch, 
_update_tuple_sketch
 from _datasketches import  _tuple_union, _tuple_intersection
 from _datasketches import _tuple_a_not_b, _tuple_jaccard_similarity
-from _datasketches import PyObjectSerDe, theta_sketch
+from _datasketches import TuplePolicy, PyObjectSerDe, theta_sketch
 
 class tuple_sketch(ABC):
   """An abstract base class representing a Tuple Sketch."""
diff --git a/python/include/py_object_lt.hpp b/python/include/py_object_lt.hpp
index 27d742f..d17fa7b 100644
--- a/python/include/py_object_lt.hpp
+++ b/python/include/py_object_lt.hpp
@@ -24,7 +24,7 @@
 
 /*
   This header defines a less than operator on generic python
-  objects. The implementation calls the object's built-in __lr__()
+  objects. The implementation calls the object's built-in __lt__()
   method. If that method is not defined, the call may fail.
 */
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to