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

Skip to content

Commit 03f4495

Browse files
committed
reformat after black upgrade
1 parent de82a73 commit 03f4495

20 files changed

Lines changed: 27 additions & 41 deletions

IPython/core/magic_arguments.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
''' A decorator-based method of constructing IPython magics with `argparse`
1+
'''A decorator-based method of constructing IPython magics with `argparse`
22
option handling.
33
44
New magic functions can be defined like so::
@@ -27,12 +27,12 @@ def magic_cool(self, arg):
2727
2828
In[1]: %cool?
2929
%cool [-o OPTION] arg
30-
30+
3131
A really cool magic command.
32-
32+
3333
positional arguments:
3434
arg An integer positional argument.
35-
35+
3636
optional arguments:
3737
-o OPTION, --option OPTION
3838
An optional argument.

IPython/external/pickleshare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22

3-
""" PickleShare - a small 'shelve' like datastore with concurrency support
3+
"""PickleShare - a small 'shelve' like datastore with concurrency support
44
55
Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike
66
shelve, many processes can access the database simultaneously. Changing a

IPython/external/qt_for_kernel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Import Qt in a manner suitable for an IPython kernel.
1+
"""Import Qt in a manner suitable for an IPython kernel.
22
33
This is the import used for the `gui=qt` or `matplotlib=qt` initialization.
44

IPython/terminal/prompts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def continuation_prompt_tokens(
6262
(
6363
Token.Prompt.Wrap,
6464
# (" " * (width - 2)) + "\N{HORIZONTAL ELLIPSIS} ",
65-
(" " * (width - 2)) + "\N{Vertical ELLIPSIS} ",
65+
(" " * (width - 2)) + "\N{VERTICAL ELLIPSIS} ",
6666
),
6767
]
6868
prefix = " " * len(

IPython/utils/PyColorize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def make_arrow(self, width: int):
261261
Token.OutPrompt: "ansibrightred",
262262
Token.OutPromptNum: "ansired bold",
263263
},
264-
symbols={"arrow_body": "\u2500", "arrow_head": "\u25B6", "top_line": "\u2500"},
264+
symbols={"arrow_body": "\u2500", "arrow_head": "\u25b6", "top_line": "\u2500"},
265265
)
266266

267267

@@ -327,7 +327,7 @@ def make_arrow(self, width: int):
327327
Token.OutPromptNum: C5,
328328
**pl,
329329
},
330-
symbols={"arrow_body": "\u2500", "arrow_head": "\u25B6", "top_line": "\u2500"},
330+
symbols={"arrow_body": "\u2500", "arrow_head": "\u25b6", "top_line": "\u2500"},
331331
)
332332

333333
theme_table: dict[str, Theme] = {

examples/auto_suggest_llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
8.32 – this is provisional and may change.
66
7-
To test this you can run the following command from the root of IPython
7+
To test this you can run the following command from the root of IPython
88
directory:
99
1010
$ ipython --TerminalInteractiveShell.llm_provider_class=examples.auto_suggest_llm.ExampleCompletionProvider

tests/cve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Test that CVEs stay fixed.
2+
Test that CVEs stay fixed.
33
"""
44

55
from IPython.utils.tempdir import TemporaryDirectory, TemporaryWorkingDirectory

tests/test_backgroundjobs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Tests for pylab tools module.
2-
"""
1+
"""Tests for pylab tools module."""
32

43
# -----------------------------------------------------------------------------
54
# Copyright (c) 2011, the IPython Development Team.

tests/test_compilerop.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# coding: utf-8
2-
"""Tests for the compilerop module.
3-
"""
2+
"""Tests for the compilerop module."""
43
# -----------------------------------------------------------------------------
54
# Copyright (C) 2010-2011 The IPython Development Team.
65
#

tests/test_completerlib.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
"""Tests for completerlib.
3-
4-
"""
2+
"""Tests for completerlib."""
53

64
# -----------------------------------------------------------------------------
75
# Imports

0 commit comments

Comments
 (0)