Skip to content

Commit

Permalink
fix reST syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Nov 22, 2024
1 parent aa1af92 commit 6e23616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nicegui/elements/mixins/validation_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ def error(self, error: Optional[str]) -> None:
def validate(self, *, return_result: bool = True) -> bool:
"""Validate the current value and set the error message if necessary.
For async validation functions, `return_result` must be set to ``False`` and the return value will be ``True``,
For async validation functions, ``return_result`` must be set to ``False`` and the return value will be ``True``,
independently of the validation result which is evaluated in the background.
:param return_result: whether to return the result of the validation (default: True)
:param return_result: whether to return the result of the validation (default: ``True``)
:return: whether the validation was successful (always ``True`` for async validation functions)
"""
if helpers.is_coroutine_function(self._validation):
Expand Down

0 comments on commit 6e23616

Please sign in to comment.