@@ -331,7 +331,7 @@ def add_subparser(self, flag: str, subparser_type: type, **kwargs) -> None:
331
331
self ._subparser_buffer .append ((flag , subparser_type , kwargs ))
332
332
333
333
def _add_subparsers (self ) -> None :
334
- """Add each of the subparsers to the Tap object. """
334
+ """Add each of the subparsers to the Tap object."""
335
335
# Initialize the _subparsers object if not already created
336
336
if self ._subparsers is None and len (self ._subparser_buffer ) > 0 :
337
337
self ._subparsers = super (Tap , self ).add_subparsers ()
@@ -345,7 +345,7 @@ def add_subparsers(self, **kwargs) -> None:
345
345
self ._subparsers = super ().add_subparsers (** kwargs )
346
346
347
347
def _configure (self ) -> None :
348
- """Executes the user-defined configuration. """
348
+ """Executes the user-defined configuration."""
349
349
# Call the user-defined configuration
350
350
self .configure ()
351
351
@@ -370,7 +370,7 @@ def configure(self) -> None:
370
370
pass
371
371
372
372
@staticmethod
373
- def get_reproducibility_info (repo_path : Optional [PathLike ] = None ) -> Dict [str , Optional [ str ] ]:
373
+ def get_reproducibility_info (repo_path : Optional [PathLike ] = None ) -> Dict [str , str ]:
374
374
"""Gets a dictionary of reproducibility information.
375
375
376
376
Reproducibility information always includes:
@@ -402,7 +402,7 @@ def get_reproducibility_info(repo_path: Optional[PathLike] = None) -> Dict[str,
402
402
if git_info .has_git ():
403
403
reproducibility ["git_root" ] = git_info .get_git_root ()
404
404
reproducibility ["git_url" ] = git_info .get_git_url (commit_hash = True )
405
- reproducibility ["git_has_uncommitted_changes" ] = git_info .has_uncommitted_changes ()
405
+ reproducibility ["git_has_uncommitted_changes" ] = str ( git_info .has_uncommitted_changes () )
406
406
407
407
return reproducibility
408
408
@@ -727,7 +727,7 @@ def __deepcopy__(self, memo: Dict[int, Any] = None) -> TapType:
727
727
728
728
memo [id (self )] = copied
729
729
730
- for ( k , v ) in self .__dict__ .items ():
730
+ for k , v in self .__dict__ .items ():
731
731
copied .__dict__ [k ] = deepcopy (v , memo )
732
732
733
733
return copied
0 commit comments