misc(docs): testing some changes to hopefully get docstrings working
Some checks failed
Pylint / Pylint (3.12) (push) Failing after 34s

This commit is contained in:
Seaswimmer 2023-12-19 16:04:12 -05:00
parent 795ca60894
commit 7907aaa1e0
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE
3 changed files with 25 additions and 12 deletions

View file

@ -5,3 +5,15 @@ API Reference
:toctree: generated
pyzipline
.. automodule:: zipline
:members:
:undoc-members:
:show-inheritance:
:inherited-members:
:noindex:
:exclude-members: __init__, __repr__, __str__
.. automethod:: zipline.function_name
:noindex:

View file

@ -1,3 +1,4 @@
# pylint: skip-file
# Configuration file for the Sphinx documentation builder.
# -- Project information

View file

@ -16,14 +16,14 @@ class ZiplineApi:
:param hostname: The hostname of your Zipline instance, WITHOUT https or http.
:type hostname: str
:param token: (optional) String used for authentication when making requests.
:type token: str
:param ssl: (optional) Normally set to True, but if your Zipline instance doesn't use SSL/TLS, set this to False.
:type ssl: bool
:param enforced_signing: (optional) Normally set to True, but if having SSL/TLS cert validation issues, can turn off with False.
:type enforced_signing: bool
:param logger: (optional) If your app has a logger, pass it in here.
:type logger: logging.Logger
:param token: String used for authentication when making requests.
:type token: str, optional
:param ssl: Normally set to True, but if your Zipline instance doesn't use SSL/TLS, set this to False.
:type ssl: bool, optional
:param enforced_signing: Normally set to True, but if having SSL/TLS cert validation issues, can turn off with False.
:type enforced_signing: bool, optional
:param logger: If your app has a logger, pass it in here.
:type logger: logging.Logger, optional
"""
self._rest_adapter = RestAdapter(hostname=hostname, token=token, ssl=ssl, enforced_signing=enforced_signing, logger=logger)
@ -32,8 +32,8 @@ class ZiplineApi:
:param user_id: Integer ID of the user
:type user_id: int
:return: User object
:rtype: User
:return: The :class:`pyzipline.models.User` object matching the ID
:rtype: :class:`pyzipline.models.User`
"""
result = self._rest_adapter.get(endpoint=f"user/{user_id}")
return User(**result.data)
@ -41,8 +41,8 @@ class ZiplineApi:
def get_self(self) -> User:
"""Get the currently authenticated user
:return: User object
:rtype: User
:return: `pyzipline.models.User`object matching the authenticated user
:rtype: `pyzipline.models.User`
"""
result = self._rest_adapter.get(endpoint=f"user")
return User(**result.data)