Better docstrings
This commit is contained in:
@@ -1038,6 +1038,7 @@ async def handle_xml_upload(
|
||||
# TODO Bit sketchy. May need requests-toolkit in the future
|
||||
def parse_multipart_data(content_type: str, body: bytes) -> dict[str, Any]:
|
||||
"""Parse multipart/form-data from raw request body.
|
||||
|
||||
This is a simplified parser for the AlpineBits use case.
|
||||
"""
|
||||
if "multipart/form-data" not in content_type:
|
||||
|
||||
@@ -96,6 +96,8 @@ DEFAULT_CONFIG_FILE = "config.yaml"
|
||||
|
||||
|
||||
class Config:
|
||||
"""Class to load and hold the configuration."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
config_folder: str | Path | None = None,
|
||||
|
||||
Reference in New Issue
Block a user