From 5d9da8f054aa4a06ba225f2add55ba99535d2220 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Sun, 31 Jul 2022 00:00:51 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9A=20DOCS:=20Fix=20typos=20(#31)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pytest_notebook/diffing.py | 4 ++-- pytest_notebook/notebook.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pytest_notebook/diffing.py b/pytest_notebook/diffing.py index 620af0e..6b82df4 100644 --- a/pytest_notebook/diffing.py +++ b/pytest_notebook/diffing.py @@ -62,7 +62,7 @@ def diff_sequence_simple( def diff_notebooks( - intial: NotebookNode, final: NotebookNode, initial_path: str = "" + initial: NotebookNode, final: NotebookNode, initial_path: str = "" ) -> List[DiffEntry]: """Compare two notebooks. @@ -77,7 +77,7 @@ def diff_notebooks( """ return diff( - intial, + initial, final, path=initial_path, predicates=defaultdict2(lambda: [operator.__eq__], {}), diff --git a/pytest_notebook/notebook.py b/pytest_notebook/notebook.py index f418ab0..93ee523 100644 --- a/pytest_notebook/notebook.py +++ b/pytest_notebook/notebook.py @@ -306,5 +306,5 @@ def create_cell( def dump_notebook(nb: NotebookNode, as_version=nbformat.NO_CONVERT) -> NotebookNode: - """Dump the notebook to a sting.""" + """Dump the notebook to a string.""" return nbformat.writes(nb, version=as_version)