class documentation
class Option:
A descriptor implementing BabelNet configuration options.
| Method | __init__ |
init method |
| Instance Variable | default |
The default value of this Option. |
| Instance Variable | doc |
Docstring used to document the Option. |
| Instance Variable | interpolate |
If interpolate is set to an Option having a str value and the current Option has a str value then the result is the concatenated strings. This is useful for joining a base path with a file name. |
| Instance Variable | name |
Name of the option. |
| Instance Variable | on |
Optional callback function that is triggered when the Option is modified. The parameter of the function is the Config instance where the descriptor is used. |
| Method | __get__ |
Undocumented |
| Method | __set__ |
Undocumented |
| Method | __set |
Undocumented |
| Method | _callback |
Trigger any callbacks. |
| Method | _docstring |
get the docstring |
init method
| Parameters | |
default:Any | The default value of this Option. |
interpolate:Optional["Option"] | If interpolate is set to an Option having a str value and the current Option has a str value then the result is the concatenated strings. This is useful for joining a base path with a file name. |
onOptional[Callable[["Config"], None]] | Optional callback function that is triggered when the Option is modified. The parameter of the function is the Config instance where the descriptor is used. |
doc:Optional[str] | Docstring used to document the Option. |
If interpolate is set to an Option having a str value and the current Option has a str value then the result is the concatenated strings. This is useful for joining a base path with a file name.