Skip to content

Commit

Permalink
oops, some prints left in!
Browse files Browse the repository at this point in the history
  • Loading branch information
bitplane committed Sep 25, 2023
1 parent 7210384 commit 5bd99d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion arranges/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]" }
]
Expand Down
5 changes: 0 additions & 5 deletions arranges/src/arranges/ranges.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand All @@ -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
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 5bd99d0

Please sign in to comment.