Skip to content

Commit

Permalink
docs(utils): generate entries of submodule *utils*
Browse files Browse the repository at this point in the history
  • Loading branch information
ibressler committed Feb 24, 2023
1 parent 738fdd4 commit 762a548
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/reference/jupyter_analysis_tools.utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
jupyter_analysis_tools.utils
============================

.. automodule:: jupyter_analysis_tools.utils
:members:
3 changes: 2 additions & 1 deletion src/jupyter_analysis_tools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def isWindows():
def isList(obj):
"""Return true if the provided object is list-like including a numpy array
but not a string.
>>> isList([1, 2, 'a'])
True
>>> isList(tuple((1, 2, 'a')))
Expand Down Expand Up @@ -153,7 +154,7 @@ def fmtErr(val, std, precision=2, width=None):


def updatedDict(d, key, value):
"""Implements the |= operator for dict in Python version <3.9."""
"""Implements the \\|= operator for dict in Python version <3.9."""
dd = copy.copy(d)
dd[key] = value
return dd

0 comments on commit 762a548

Please sign in to comment.