From 5bd99d06394602ef8b509ede55e8f2a7716dfcb2 Mon Sep 17 00:00:00 2001 From: Gareth Davidson Date: Mon, 25 Sep 2023 01:37:43 +0100 Subject: [PATCH] oops, some prints left in! --- arranges/pyproject.toml | 2 +- arranges/src/arranges/ranges.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/arranges/pyproject.toml b/arranges/pyproject.toml index 36ea31b..399a8cf 100644 --- a/arranges/pyproject.toml +++ b/arranges/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "arranges" description = "Mergable range object for use in Pydantic classes" -version = "0.1.0" +version = "0.1.1" authors = [ { name = "Gareth Davidson", email = "gaz@bitplane.net" } ] diff --git a/arranges/src/arranges/ranges.py b/arranges/src/arranges/ranges.py index 2b227c3..ab9c956 100644 --- a/arranges/src/arranges/ranges.py +++ b/arranges/src/arranges/ranges.py @@ -21,7 +21,6 @@ def __init__(self, value: Any, stop: range_idx | None = None): Construct a new string with the canonical form of the range. """ self.segments = self.from_str(self) - print("init:", value, type(value), self.segments) def __new__(cls, value: Any, stop: range_idx | None = None) -> str: """ @@ -30,7 +29,6 @@ def __new__(cls, value: Any, stop: range_idx | None = None) -> str: This becomes "self" in __init__, so we're always a string """ val = cls.construct_str(value, stop) - # print("new one!", value, stop, val) return str.__new__(cls, val) @classmethod @@ -175,9 +173,6 @@ def __contains__(self, other: Any) -> bool: Are all of the other ranges in our ranges? """ combined = str(self + other) - print("combined: ", combined) - print("self:", self) - print("other:", other) return self and (combined == self)