#1816 - Added full documentation on the database client/server, and the internal frame processing process

This commit is contained in:
Chris McCarthy
2023-09-11 09:30:40 +01:00
parent b1d8666c16
commit 388176b8bd
13 changed files with 246 additions and 10 deletions

View File

@@ -2,6 +2,7 @@ from __future__ import annotations
from enum import Enum
from random import choice
from typing import Any
class FileType(Enum):
@@ -95,7 +96,7 @@ class FileType(Enum):
"Generic DB file. Used by sqlite3."
@classmethod
def _missing_(cls, value):
def _missing_(cls, value: Any) -> FileType:
return cls.UNKNOWN
@classmethod
@@ -118,7 +119,7 @@ class FileType(Enum):
return size if size else 0
def get_file_type_from_extension(file_type_extension: str):
def get_file_type_from_extension(file_type_extension: str) -> FileType:
"""
Get a FileType from a file type extension.