Skip to content

Commit

Permalink
Merge pull request #3 from samuelchen/option_as_code
Browse files Browse the repository at this point in the history
Option as code
  • Loading branch information
samuelchen authored May 29, 2019
2 parents fa5644c + bd6bc33 commit a592fc9
Show file tree
Hide file tree
Showing 10 changed files with 556 additions and 339 deletions.
8 changes: 8 additions & 0 deletions RELEASENOTE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

# 1.1.0

Change `Option` to make its instance object same as its `code`.

# 1.0.0

General Available
3 changes: 3 additions & 0 deletions docs/operators.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Supported Operators of `Option`

Option is refactored. An Option object is now same as its code.
This doc need to be re-written.

`Option.code` is the real value of the enum/option item. Somehow we need to use codes
like `if active_state == MyOption.RUNNING ...` to check the status. For convenience using it, some of the operators
are override.
Expand Down
2 changes: 1 addition & 1 deletion optenum/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
__copyright__ = "Copyright (c) 2019 Samuel Chen (Chen Wei)"
__license__ = "MIT"
__summary__ = "A missing python Enum/option lib supports enum code, name, text, even (code, name) tuple list and so on."
__uri__ = "https://github.com/samuelchen/optenum.git"
__uri__ = "https://github.com/samuelchen/optenum.git"
Loading

0 comments on commit a592fc9

Please sign in to comment.