File: jsoncfg.py
Role: Python Source Code
Path: mosheh.types
To ensure the correct type annotation of the default config file mosheh.json
this file
invokes the typing.TypedDict
powers for leading this mission.
The config JSON itself is divided at 2 parts: Documentation and IO:
- Documentation: handles the project's data and final documentation configuration
- IO: handles the input and output infos, such as output path and codebase root
The idea here is to use TypedDict as a typing alias plus contract - kinda.
Imports
import TypedDict
Path: typing
Category: native
Consts
NO CONSTANT DEFINED HERE
Classes
class DocumentationJSON
Parents: TypedDict
Decorators: None
Kwargs: None
Docstring
Typed-Dict class to ensure right typing for config file's doc section.
Snippet
class IOJSON
Parents: TypedDict
Decorators: None
Kwargs: None
Docstring
Typed-Dict class to ensure right typing for config file's IO section.
Snippet
class DefaultJSON
Parents: TypedDict
Decorators: None
Kwargs: None
Docstring
Typed-Dict class to ensure right typing for config file itself.
Snippet
Functions
NO FUNCTION DEFINED HERE
Assertions
NO ASSERT DEFINED HERE