Document force flag on set_extension (closes #4148)

This commit is contained in:
Ines Montani 2019-08-19 19:22:07 +02:00
parent 66aba2d676
commit ce4c3e5204
2 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,7 @@ For details, see the documentation on
| `method` | callable | Set a custom method on the object, for example `span._.compare(other_span)`. |
| `getter` | callable | Getter function that takes the object and returns an attribute value. Is called when the user accesses the `._` attribute. |
| `setter` | callable | Setter function that takes the `Span` and a value, and modifies the object. Is called when the user writes to the `Span._` attribute. |
| `force` | bool | Force overwriting existing attribute. |
## Span.get_extension {#get_extension tag="classmethod" new="2"}

View File

@ -63,6 +63,7 @@ For details, see the documentation on
| `method` | callable | Set a custom method on the object, for example `token._.compare(other_token)`. |
| `getter` | callable | Getter function that takes the object and returns an attribute value. Is called when the user accesses the `._` attribute. |
| `setter` | callable | Setter function that takes the `Token` and a value, and modifies the object. Is called when the user writes to the `Token._` attribute. |
| `force` | bool | Force overwriting existing attribute. |
## Token.get_extension {#get_extension tag="classmethod" new="2"}