Skip to content

Commit

Permalink
0.9.10 (#171)
Browse files Browse the repository at this point in the history
* 🐛 Fix `utils.mark` and `get_marked` when `__meta__` is `None`

* 🔖 0.9.10
  • Loading branch information
pwwang authored Jun 6, 2023
1 parent 34deb54 commit 42b52d8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 0.9.10

- 🐛 Fix `utils.mark` and `get_marked` when `__meta__` is `None`

## 0.9.9

- ⚡️ `utils.mark` and `get_marked` now work with `ProcGroup` and other classes
Expand Down
4 changes: 2 additions & 2 deletions pipen/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def mark(**kwargs) -> Callable[[type], type]:
The decorator
"""
def decorator(cls: type) -> type:
if not hasattr(cls, "__meta__"):
if not getattr(cls, "__meta__", None):
cls.__meta__ = {}

cls.__meta__.update(kwargs)
Expand All @@ -571,7 +571,7 @@ def get_marked(cls: type, mark_name: str, default: Any = None) -> Any:
Returns:
The marked value
"""
if not hasattr(cls, "__meta__"):
if not getattr(cls, "__meta__", None):
return default

return cls.__meta__.get(mark_name, default)
Expand Down
2 changes: 1 addition & 1 deletion pipen/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Provide version of pipen"""

__version__ = "0.9.9"
__version__ = "0.9.10"
18 changes: 9 additions & 9 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"

[tool.poetry]
name = "pipen"
version = "0.9.9"
version = "0.9.10"
description = "A pipeline framework for python"
authors = [ "pwwang <[email protected]>",]
license = "MIT"
Expand Down

0 comments on commit 42b52d8

Please sign in to comment.