mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
black
This commit is contained in:
parent
03bacf4087
commit
08765c4c90
5 changed files with 4 additions and 14 deletions
|
@ -61,10 +61,7 @@ class RichCompletion(str):
|
|||
|
||||
def __repr__(self):
|
||||
return "RichCompletion({}, prefix_len={}, display={}, description={})".format(
|
||||
repr(str(self)),
|
||||
self.prefix_len,
|
||||
repr(self.display),
|
||||
repr(self.description),
|
||||
repr(str(self)), self.prefix_len, repr(self.display), repr(self.description)
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -202,7 +202,7 @@ class JsonHistoryGC(threading.Thread):
|
|||
# info: file size, closing timestamp, number of commands, filename
|
||||
ts = lj.get("ts", (0.0, None))
|
||||
files.append(
|
||||
(ts[1] or ts[0], len(lj.sizes["cmds"]) - 1, f, cur_file_size,),
|
||||
(ts[1] or ts[0], len(lj.sizes["cmds"]) - 1, f, cur_file_size)
|
||||
)
|
||||
lj.close()
|
||||
if xonsh_debug:
|
||||
|
|
|
@ -181,7 +181,7 @@ class FStringAdaptor:
|
|||
)
|
||||
)
|
||||
field_node = ast.Tuple(
|
||||
elts=elts, ctx=ast.Load(), lineno=lineno, col_offset=col_offset,
|
||||
elts=elts, ctx=ast.Load(), lineno=lineno, col_offset=col_offset
|
||||
)
|
||||
node.args[0] = field_node
|
||||
|
||||
|
|
|
@ -159,13 +159,7 @@ def _ul_add_action(actions, opt, res_type, stderr):
|
|||
actions.append(
|
||||
[
|
||||
_ul_show,
|
||||
{
|
||||
"res": r[0],
|
||||
"res_type": res_type,
|
||||
"desc": r[3],
|
||||
"unit": r[4],
|
||||
"opt": opt,
|
||||
},
|
||||
{"res": r[0], "res_type": res_type, "desc": r[3], "unit": r[4], "opt": opt},
|
||||
]
|
||||
)
|
||||
return True
|
||||
|
|
|
@ -39,4 +39,3 @@ def custom_keybindings(bindings, **kw):
|
|||
endpos = endpos + 1 if startpos == 0 else endpos
|
||||
buff.text = buff.text[:startpos] + buff.text[endpos:]
|
||||
buff.cursor_position = startpos
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue