Skip to content

Commit

Permalink
Simplify abstract property methods and update version
Browse files Browse the repository at this point in the history
  • Loading branch information
horta committed May 16, 2024
1 parent 819fbc5 commit aa46cf4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions intervals/deciphon_intervals/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,15 @@
class Interval(BaseModel, ABC):
@property
@abstractmethod
def r(self) -> RInterval:
...
def r(self) -> RInterval: ...

@property
@abstractmethod
def py(self) -> PyInterval:
...
def py(self) -> PyInterval: ...

@property
@abstractmethod
def slice(self) -> slice:
...
def slice(self) -> slice: ...


class PyInterval(Interval):
Expand Down
4 changes: 2 additions & 2 deletions intervals/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[tool.poetry]
name = "deciphon-intervals"
version = "0.1.1"
version = "0.1.2"
description = "It helps to model the Python and R intervals seamlessly."
authors = ["Danilo Horta <[email protected]>"]
license = "MIT"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.9"
pydantic = "^2.6.1"
pydantic = "^2.7"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit aa46cf4

Please sign in to comment.