2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 10:05:39 +00:00

refactor: remove blank lines after docstring (#5736)

There shouldn't be any blank lines after the function docstring.
Remove the blank lines to fix this issue.

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
Matthias Mair
2023-10-17 22:28:57 +02:00
committed by GitHub
parent 158a209a0f
commit faac6b6bf5
136 changed files with 0 additions and 757 deletions

View File

@ -11,7 +11,6 @@ import requests
def fetch_rtd_versions():
"""Get a list of RTD docs versions to build the version selector"""
print("Fetching documentation versions from ReadTheDocs")
versions = []
@ -94,7 +93,6 @@ def get_release_data():
- First look to see if 'releases.json' file exists
- If data does not exist in this file, request via the github API
"""
json_file = os.path.join(os.path.dirname(__file__), 'releases.json')
releases = []
@ -153,7 +151,6 @@ def on_config(config, *args, **kwargs):
We can use these to determine (at run time) where we are hosting
"""
rtd = os.environ.get('READTHEDOCS', False)
# Check for 'versions.json' file

View File

@ -9,7 +9,6 @@ def define_env(env):
@env.macro
def listimages(subdir):
"""Return a listing of all asset files in the provided subdir"""
here = os.path.dirname(__file__)
directory = os.path.join(here, 'docs', 'assets', 'images', subdir)