feat(field_typing): add NestedDict type alias to improve code readability and maintainability

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-09-14 14:09:18 -03:00
commit fbedf7f734
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,3 @@
from .base import NestedDict
__all__ = ["NestedDict"]

View file

@ -0,0 +1,4 @@
from typing import Union, Dict
# Type alias for more complex dicts
NestedDict = Dict[str, Union[str, Dict]]