Skip to content

Commit

Permalink
better action repr
Browse files Browse the repository at this point in the history
  • Loading branch information
zigai committed Nov 3, 2023
1 parent fa7015c commit 300d7f7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions pypipeline/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
from pypipeline import constants, filter, modifier, util
from pypipeline.action import Action
from pypipeline.cli import PyPipelineCLI
from pypipeline.item import Item
from pypipeline.pipeline import Pipeline, PriorityPipeline
2 changes: 1 addition & 1 deletion pypipeline/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get_args(self) -> Dict[str, Any]:
return args

def __repr__(self):
vars_str = ", ".join([f"{i}={j}" for i, j in vars(self).items()])
vars_str = ", ".join([f"{i}={j}" for i, j in self.dict().items()])
return f"{self.__class__.__name__}({vars_str})"

def __lt__(self, other):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="pypeline-python",
version="0.1.5",
version="0.1.6",
description="PyPipeline is a simple Python framework for building data processing pipelines.",
long_description=README,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 300d7f7

Please sign in to comment.