-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MNT: A little hardening of the auditing of Nodes #340
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
from typing import Any, Callable, Iterator, Literal | ||
from zipfile import ZipFile | ||
|
||
from ._audit import Node, get_tree | ||
from ._audit import VALID_NODE_CHILD_TYPES, Node, get_tree | ||
from ._general import FunctionNode, JsonNode, ListNode | ||
from ._numpy import NdArrayNode | ||
from ._scipy import SparseMatrixNode | ||
|
@@ -168,7 +168,7 @@ def pretty_print_tree( | |
|
||
|
||
def walk_tree( | ||
node: Node | dict[str, Node] | list[Node], | ||
node: VALID_NODE_CHILD_TYPES | dict[str, VALID_NODE_CHILD_TYPES], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. isn't There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but this is |
||
node_name: str = "root", | ||
level: int = 0, | ||
is_last: bool = False, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we removing them cause now primitives are trusted by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what I was referring to here: