@@ -749,7 +749,7 @@ class CatFileContentStream:
749
749
rest to ensure the underlying stream continues to work.
750
750
"""
751
751
752
- __slots__ : Tuple [ str , ...] = ("_stream" , "_nbr" , "_size" )
752
+ __slots__ = ("_stream" , "_nbr" , "_size" )
753
753
754
754
def __init__ (self , size : int , stream : IO [bytes ]) -> None :
755
755
self ._stream = stream
@@ -846,14 +846,14 @@ def __del__(self) -> None:
846
846
self ._stream .read (bytes_left + 1 )
847
847
# END handle incomplete read
848
848
849
- def __init__ (self , working_dir : Union [None , PathLike ] = None ):
849
+ def __init__ (self , working_dir : Union [None , PathLike ] = None ) -> None :
850
850
"""Initialize this instance with:
851
851
852
852
:param working_dir:
853
- Git directory we should work in. If ``None``, we always work in the current
854
- directory as returned by :func:`os.getcwd`.
855
- This is meant to be the working tree directory if available, or the
856
- ``.git`` directory in case of bare repositories.
853
+ Git directory we should work in. If ``None``, we always work in the current
854
+ directory as returned by :func:`os.getcwd`.
855
+ This is meant to be the working tree directory if available, or the
856
+ ``.git`` directory in case of bare repositories.
857
857
"""
858
858
super ().__init__ ()
859
859
self ._working_dir = expand_path (working_dir )
@@ -1103,8 +1103,8 @@ def execute(
1103
1103
:raise git.exc.GitCommandError:
1104
1104
1105
1105
:note:
1106
- If you add additional keyword arguments to the signature of this method,
1107
- you must update the ``execute_kwargs`` variable housed in this module.
1106
+ If you add additional keyword arguments to the signature of this method, you
1107
+ must update the ``execute_kwargs`` variable housed in this module.
1108
1108
"""
1109
1109
# Remove password for the command if present.
1110
1110
redacted_command = remove_password_if_present (command )
@@ -1438,7 +1438,7 @@ def _call_process(
1438
1438
1439
1439
turns into::
1440
1440
1441
- git rev-list max-count 10 --header master
1441
+ git rev-list max-count 10 --header master
1442
1442
1443
1443
:return:
1444
1444
Same as :meth:`execute`. If no args are given, used :meth:`execute`'s
0 commit comments