Skip to content

Commit

Permalink
Merge pull request #566 from mmikita95/fix-syntax-warning
Browse files Browse the repository at this point in the history
fix: raw docstrings for `subscribe_mutation` & `parse_state_variable_expression`
  • Loading branch information
ramedina86 authored Sep 19, 2024
2 parents 1375d94 + 57ca118 commit 07c120a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/writer/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ def subscribe_mutation(self,
path: Union[str, List[str]],
handler: Callable[..., Union[None, Awaitable[None]]],
initial_triggered: bool = False) -> None:
"""
r"""
Automatically triggers a handler when a mutation occurs in the state.
>>> def _increment_counter(state):
Expand Down Expand Up @@ -2369,7 +2369,7 @@ def _clone_mutation_subscriptions(session_state: State, app_state: State, root_s


def parse_state_variable_expression(p: str):
"""
r"""
Parses a state variable expression into a list of parts.
>>> parse_state_variable_expression("a.b.c")
Expand Down

0 comments on commit 07c120a

Please sign in to comment.