Fix formatting after black upgrade
This commit is contained in:
parent
0a5b84b8be
commit
fc634afc0d
5 changed files with 12 additions and 4 deletions
|
|
@ -222,7 +222,7 @@ class SphinxMapperBase(object):
|
|||
|
||||
pattern_regexes = []
|
||||
for pattern in patterns:
|
||||
regex = re.compile(fnmatch.translate(pattern).replace('.*', '(.*)'))
|
||||
regex = re.compile(fnmatch.translate(pattern).replace(".*", "(.*)"))
|
||||
pattern_regexes.append((pattern, regex))
|
||||
|
||||
for _dir in dirs:
|
||||
|
|
|
|||
|
|
@ -541,7 +541,9 @@ def format_args(args_node): # pylint: disable=too-many-branches,too-many-statem
|
|||
|
||||
result.append(
|
||||
_format_args(
|
||||
args_node.kwonlyargs, args_node.kw_defaults, kwonlyargs_annotations,
|
||||
args_node.kwonlyargs,
|
||||
args_node.kw_defaults,
|
||||
kwonlyargs_annotations,
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -151,6 +151,9 @@ def add_domain_to_toctree(app, doctree, docname):
|
|||
toc_insertion_point = toc_insertion_point[1]
|
||||
else:
|
||||
to_add = _build_toc_node(
|
||||
docname, anchor=ref_id, text=ref_text, bullet=True,
|
||||
docname,
|
||||
anchor=ref_id,
|
||||
text=ref_text,
|
||||
bullet=True,
|
||||
)
|
||||
toc_insertion_point.append(to_add)
|
||||
|
|
|
|||
|
|
@ -4,5 +4,6 @@
|
|||
This is a description
|
||||
"""
|
||||
|
||||
|
||||
class Foo(object):
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -96,7 +96,9 @@ class DotNetObjectTests(unittest.TestCase):
|
|||
def test_class_namespace(self):
|
||||
"""Class parent resolution"""
|
||||
cls = dotnet.DotNetClass(
|
||||
dict(id="Foo.Bar.Widget", type="class"), jinja_env=None, app=None,
|
||||
dict(id="Foo.Bar.Widget", type="class"),
|
||||
jinja_env=None,
|
||||
app=None,
|
||||
)
|
||||
self.assertEqual(cls.namespace, "Foo.Bar")
|
||||
cls = dotnet.DotNetClass(
|
||||
|
|
|
|||
Loading…
Reference in a new issue