✨ feat(field_typing): add NestedDict type alias to improve code readability and maintainability
This commit is contained in:
parent
70d9742d16
commit
fbedf7f734
2 changed files with 7 additions and 0 deletions
3
src/backend/langflow/field_typing/__init__.py
Normal file
3
src/backend/langflow/field_typing/__init__.py
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
from .base import NestedDict
|
||||||
|
|
||||||
|
__all__ = ["NestedDict"]
|
||||||
4
src/backend/langflow/field_typing/base.py
Normal file
4
src/backend/langflow/field_typing/base.py
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
from typing import Union, Dict
|
||||||
|
|
||||||
|
# Type alias for more complex dicts
|
||||||
|
NestedDict = Dict[str, Union[str, Dict]]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue