Skip to content

Add turn_into() method #21

@floscha

Description

@floscha
todo = TodoItem("Buy groceries")
todo.check()

callout = todo.turn_into(Callout)
# What happens when executing `callout.is_checked`?!

todo = callout.turn_into(TodoItem)
# After tunring block back into todo, it should still be checked.
assert todo.is_checked

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions