mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 13:21:25 -07:00
Fix ansible-test type hints.
This commit is contained in:
parent
0a2cdb2585
commit
f6d7fc548e
4 changed files with 7 additions and 7 deletions
|
@ -79,8 +79,8 @@ class Git(object):
|
|||
def run_git_split(self, cmd, separator=None, str_errors='strict'):
|
||||
"""
|
||||
:type cmd: list[str]
|
||||
:param separator: str | None
|
||||
:type str_errors: 'strict' | 'replace'
|
||||
:type separator: str | None
|
||||
:type str_errors: str
|
||||
:rtype: list[str]
|
||||
"""
|
||||
output = self.run_git(cmd, str_errors=str_errors).strip(separator)
|
||||
|
@ -93,7 +93,7 @@ class Git(object):
|
|||
def run_git(self, cmd, str_errors='strict'):
|
||||
"""
|
||||
:type cmd: list[str]
|
||||
:type str_errors: 'strict' | 'replace'
|
||||
:type str_errors: str
|
||||
:rtype: str
|
||||
"""
|
||||
return run_command(self.args, [self.git] + cmd, capture=True, always=True, str_errors=str_errors)[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue