Skip to content

Commit

Permalink
#41 Improve function description regarding type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-sung authored Apr 5, 2024
1 parent fe666a0 commit 69cd330
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions up_esb/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ def create_fluent_from_function(
Create UP fluent based on function, which calculates the fluent's values
for problem initialization. If function is a class method and a corresponding UP
representation exists for its defining class, implicitly use the later as first parameter.
The function's result type will be used for the fluent's type, or BoolType() by default
if no type annotation is provided.
If set_callable is True, also set function as the fluent function's callable. Otherwise,
you must set it later.
"""
Expand Down

0 comments on commit 69cd330

Please sign in to comment.