Skip to content

Commit

Permalink
update operator doc
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelchen committed Apr 11, 2019
1 parent 602902d commit 6b64435
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/operators.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Supported `Option` Operators
# Supported Operators of `Option`

`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
Expand Down Expand Up @@ -176,6 +176,7 @@ ValueError: invalid literal for int() with base 10: 'F'
* Multiple *

Available when `Option.code` is **number** type and the `other` variable is also **number** type.
Or `Option.code` is **string** type and the `other` variable is **integer** type.

```python
>>> Fruit.PEAR * 2
Expand Down

0 comments on commit 6b64435

Please sign in to comment.