funcs_common -> _dict
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# encoding: utf-8
|
||||
"""
|
||||
Code shared between various `funcs_*` modules.
|
||||
Shared code to deal with dicts.
|
||||
"""
|
||||
|
||||
import typing as _t
|
||||
@@ -11,9 +11,9 @@ from frozendict import deepfreeze as _deepfreeze
|
||||
from comfy.comfy_types.node_typing import IO as _IO
|
||||
|
||||
from .__meta import category_dict
|
||||
from ._dict import _new_dict_with_updated_key
|
||||
from .docstring_formatter import format_docstring as _format_docstring
|
||||
from .enums import DataTypes as _DataTypes
|
||||
from .funcs_common import _new_dict_with_updated_key
|
||||
from .node_dict_add_string import _input_types as _input_types_str
|
||||
|
||||
|
||||
|
||||
@@ -11,9 +11,9 @@ from frozendict import deepfreeze as _deepfreeze
|
||||
from comfy.comfy_types.node_typing import IO as _IO
|
||||
|
||||
from .__meta import category_dict
|
||||
from ._dict import _new_dict_with_updated_key, _T
|
||||
from .docstring_formatter import format_docstring as _format_docstring
|
||||
from .enums import DataTypes as _DataTypes
|
||||
from .funcs_common import _new_dict_with_updated_key, _T
|
||||
|
||||
|
||||
# A tiny optimization by reusing the same immutable dict:
|
||||
|
||||
@@ -11,9 +11,9 @@ from frozendict import frozendict as _frozendict, deepfreeze as _deepfreeze
|
||||
from comfy.comfy_types.node_typing import IO as _IO
|
||||
|
||||
from .__meta import category
|
||||
from ._dict import _show_text_on_node, _new_updated_dict, _T
|
||||
from .docstring_formatter import format_docstring as _format_docstring
|
||||
from .enums import DataTypes as _DataTypes
|
||||
from .funcs_common import _show_text_on_node, _new_updated_dict, _T
|
||||
from .node_dict_add_string import _input_types as _input_types_str
|
||||
|
||||
|
||||
|
||||
@@ -11,9 +11,9 @@ from frozendict import deepfreeze as _deepfreeze
|
||||
from comfy.comfy_types.node_typing import IO as _IO
|
||||
|
||||
from .__meta import category_dict
|
||||
from ._dict import _show_text_on_node, _new_dict_with_updated_key, _T
|
||||
from .docstring_formatter import format_docstring as _format_docstring
|
||||
from .enums import DataTypes as _DataTypes
|
||||
from .funcs_common import _show_text_on_node, _new_dict_with_updated_key, _T
|
||||
|
||||
|
||||
_input_types = _deepfreeze({
|
||||
|
||||
@@ -10,9 +10,9 @@ from pprint import pformat as _pformat
|
||||
from frozendict import deepfreeze as _deepfreeze, frozendict as _frozendict
|
||||
|
||||
from .__meta import category_dict
|
||||
from ._dict import _show_text_on_node, _verify_input_dict_into_new
|
||||
from .docstring_formatter import format_docstring as _format_docstring
|
||||
from .enums import DataTypes as _DataTypes
|
||||
from .funcs_common import _show_text_on_node, _verify_input_dict_into_new
|
||||
|
||||
|
||||
def _to_regular_dict_recursive_copy(input_dict: dict = None) -> dict:
|
||||
|
||||
+1
-1
@@ -15,9 +15,9 @@ from frozendict import deepfreeze as _deepfreeze
|
||||
from comfy.comfy_types.node_typing import IO as _IO
|
||||
|
||||
from .__meta import category
|
||||
from ._dict import _show_text_on_node, _verify_input_dict
|
||||
from .docstring_formatter import format_docstring as _format_docstring
|
||||
from .enums import DataTypes as _DataTypes
|
||||
from .funcs_common import _show_text_on_node, _verify_input_dict
|
||||
|
||||
|
||||
_RECURSION_LIMIT = max(int(_sys.getrecursionlimit()), 1) # You can externally monkey-patch it... but if it blows up, your fault 🤷🏻♂️single
|
||||
|
||||
@@ -9,9 +9,9 @@ from inspect import cleandoc as _cleandoc
|
||||
from frozendict import deepfreeze as _deepfreeze
|
||||
|
||||
from .__meta import category_dict
|
||||
from ._dict import _verify_input_dict, _show_text_on_node, _T
|
||||
from .docstring_formatter import format_docstring as _format_docstring
|
||||
from .enums import DataTypes as _DataTypes
|
||||
from .funcs_common import _verify_input_dict, _show_text_on_node, _T
|
||||
|
||||
|
||||
_input_types = _deepfreeze({
|
||||
|
||||
Reference in New Issue
Block a user