Skip to content

Commit

Permalink
allow empty R intervals
Browse files Browse the repository at this point in the history
  • Loading branch information
horta committed Feb 19, 2024
1 parent 217432c commit 1303f32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion intervals/deciphon_intervals/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class RInterval(Interval):

@model_validator(mode="before")
def pre_root(cls, values: dict[str, Any]) -> dict[str, Any]:
assert values["start"] <= values["stop"]
assert values["start"] <= values["stop"] + 1
return values

@property
Expand Down
2 changes: 1 addition & 1 deletion intervals/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "deciphon-intervals"
version = "0.1.0"
version = "0.1.1"
description = "It helps to model the Python and R intervals seamlessly."
authors = ["Danilo Horta <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 1303f32

Please sign in to comment.