-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
CLN: core.internals #31179
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
CLN: core.internals #31179
Conversation
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.
lgtm
else: | ||
assert isinstance(result, Block), type(result) |
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.
do we need a run-time check? can result be typed as Union[Block, List[Union[Block, List[Block]]]? Might help to type blocks and return type while touching this.
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.
thats a pretty ugly nested union; ill see if i can get rid of the double-list in the next pass
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.
@simonjayhawkins is this a deal-breaker? id like to clear the queue
Thanks @jbrockmendel |
some annotations, remove an unused argument, privatize where possible, avoid a runtime/circular import