From 8b09f2504c0a32149072d8092552eb0c72ee2426 Mon Sep 17 00:00:00 2001 From: Mattijn van Hoek Date: Sun, 29 Oct 2023 18:48:15 +0100 Subject: [PATCH] remove double quotes in reformatted long `str` --- altair/_magics.py | 4 ++-- sphinxext/utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/altair/_magics.py b/altair/_magics.py index 55b5b97e2..c6eff89b2 100644 --- a/altair/_magics.py +++ b/altair/_magics.py @@ -54,11 +54,11 @@ def _get_variable(name): if ip is None: raise ValueError( "Magic command must be run within an IPython " - "environemnt, in which get_ipython() is defined." + "environment, in which get_ipython() is defined." ) if name not in ip.user_ns: raise NameError( - "argument '{}' does not match the " "name of any defined variable".format( + "argument '{}' does not match the name of any defined variable".format( name ) ) diff --git a/sphinxext/utils.py b/sphinxext/utils.py index f9dc181e9..c3bd2052d 100644 --- a/sphinxext/utils.py +++ b/sphinxext/utils.py @@ -122,7 +122,7 @@ def get_docstring_and_rest(filename): if not isinstance(node, ast.Module): raise TypeError( - "This function only supports modules. " "You provided {}".format( + "This function only supports modules. You provided {}".format( node.__class__.__name__ ) )