Skip to content

Commit

Permalink
Fix some docstring formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwillard committed Jul 11, 2022
1 parent 4195a02 commit 04fc50f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions unification/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ def assoc(s, u, v):


def stream_eval(z, res_filter=None):
"""Evaluate a stream of `_reify`/`_unify` results.
r"""Evaluate a stream of `_reify`/`_unify` results.
This implementation consists of a deque that simulates an evaluation stack
of `_reify`/`_unify`-produced generators. We're able to overcome
`RecursionError`s this way.
`RecursionError`\s this way.
"""

if not isinstance(z, Generator):
Expand Down Expand Up @@ -79,7 +79,7 @@ def _reify_Var(o, s):


def _reify_Iterable_ctor(ctor, t, s):
"""Create a generator that yields _reify generators.
"""Create a generator that yields `_reify` generators.
The yielded generators need to be evaluated by the caller and the fully
reified results "sent" back to this generator so that it can finish
Expand Down Expand Up @@ -237,7 +237,7 @@ def _unify_slice(u, v, s):

@dispatch(object, object, Mapping)
def unify(u, v, s):
"""Find substitution so that u == v while satisfying s.
"""Find substitution so that ``u == v`` while satisfying `s`.
>>> x = var('x')
>>> unify((1, x), (1, 2), {})
Expand Down

0 comments on commit 04fc50f

Please sign in to comment.