Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e53acc3

Browse files
suzakuCarreau
authored andcommitted
Run darker as instructed
1 parent 89dc552 commit e53acc3

3 files changed

Lines changed: 15 additions & 12 deletions

File tree

IPython/core/interactiveshell.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,17 @@ def __repr__(self):
213213
raw_cell = (
214214
(self.raw_cell[:50] + "..") if len(self.raw_cell) > 50 else self.raw_cell
215215
)
216-
return '<%s object at %x, raw_cell="%s" store_history=%s silent=%s shell_futures=%s cell_id=%s>' % (
217-
name,
218-
id(self),
219-
raw_cell,
220-
self.store_history,
221-
self.silent,
222-
self.shell_futures,
223-
self.cell_id,
216+
return (
217+
'<%s object at %x, raw_cell="%s" store_history=%s silent=%s shell_futures=%s cell_id=%s>'
218+
% (
219+
name,
220+
id(self),
221+
raw_cell,
222+
self.store_history,
223+
self.silent,
224+
self.shell_futures,
225+
self.cell_id,
226+
)
224227
)
225228

226229

IPython/testing/plugin/pytest_ipdoctest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ def _remove_unwanted_precision(self, want: str, got: str) -> str:
782782
precision = 0 if fraction is None else len(fraction)
783783
if exponent is not None:
784784
precision -= int(exponent)
785-
if float(w.group()) == approx(float(g.group()), abs=10 ** -precision):
785+
if float(w.group()) == approx(float(g.group()), abs=10**-precision):
786786
# They're close enough. Replace the text we actually
787787
# got with the text we want, so that it will match when we
788788
# check the string literally.

IPython/utils/path.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ def get_py_filename(name):
8585
name = os.path.expanduser(name)
8686
if os.path.isfile(name):
8787
return name
88-
if not name.endswith('.py'):
89-
py_name = name + '.py'
88+
if not name.endswith(".py"):
89+
py_name = name + ".py"
9090
if os.path.isfile(py_name):
9191
return py_name
92-
raise IOError('File `%r` not found.' % name)
92+
raise IOError("File `%r` not found." % name)
9393

9494

9595
def filefind(filename: str, path_dirs=None) -> str:

0 commit comments

Comments
 (0)