misc: changed two docstrings' formatting
All checks were successful
Pylint / Pylint (3.12) (push) Successful in 37s
All checks were successful
Pylint / Pylint (3.12) (push) Successful in 37s
This commit is contained in:
parent
a6d90967c1
commit
63e83a7703
1 changed files with 4 additions and 2 deletions
|
@ -408,7 +408,8 @@ class ZiplineApi:
|
||||||
ValueError: Raised if amount is less than 1
|
ValueError: Raised if amount is less than 1
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Stats: Statistics about the Zipline instance"""
|
Stats: Statistics about the Zipline instance
|
||||||
|
"""
|
||||||
if amount < 1:
|
if amount < 1:
|
||||||
raise ValueError('amount must be greater than 0')
|
raise ValueError('amount must be greater than 0')
|
||||||
if force_update:
|
if force_update:
|
||||||
|
@ -440,7 +441,8 @@ class ZiplineApi:
|
||||||
PyZiplineError: Raised if the API changes, causing a breaking change in this method
|
PyZiplineError: Raised if the API changes, causing a breaking change in this method
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Version: The version of the Zipline instance"""
|
Version: The version of the Zipline instance
|
||||||
|
"""
|
||||||
result = self._rest_adapter.get(endpoint="version")
|
result = self._rest_adapter.get(endpoint="version")
|
||||||
if result.status_code == 200:
|
if result.status_code == 200:
|
||||||
return Version(**result.data)
|
return Version(**result.data)
|
||||||
|
|
Loading…
Reference in a new issue