Skip to content

Commit fc1762b

Browse files
committed
Undo a couple minor black-incompatible changes
Two of the docstrings in git.remote need to have a newline before the conceptually "first" line in order for black to accept the indentation of the subsequent text, which appears intentional and works fine as reStructuredText. Otherwise black dedents the code block, which affects rendering and is also less readable.
1 parent cd61eb4 commit fc1762b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: git/remote.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ def to_progress_instance(
125125

126126

127127
class PushInfo(IterableObj):
128-
"""Carries information about the result of a push operation of a single head::
128+
"""
129+
Carries information about the result of a push operation of a single head::
129130
130131
info = remote.push()[0]
131132
info.flags # bitflags providing more information about the result
@@ -294,7 +295,8 @@ def raise_if_error(self) -> None:
294295

295296

296297
class FetchInfo(IterableObj):
297-
"""Carries information about the results of a fetch operation of a single head::
298+
"""
299+
Carries information about the results of a fetch operation of a single head::
298300
299301
info = remote.fetch()[0]
300302
info.ref # Symbolic Reference or RemoteReference to the changed

0 commit comments

Comments
 (0)