Open
Conversation
Collaborator
gramalingam
commented
Mar 4, 2026
- Change names to match suggested style (snake_case etc.)
- Add _ to internal methods where missing
- Remove a couple of lines of useless code
…int suppression Rename camelCase local variables to snake_case in converter.py: thenGraph -> then_graph, elseGraph -> else_graph, thenAttr -> then_attr, elseAttr -> else_attr Rename camelCase nested function visitBlock -> visit_block in analysis.py (do_liveness_analysis and exposed_uses). Remove pylint disable=inconsistent-return-statements on _translate_opset_expr since all code paths already call self.fail() (which is NoReturn). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Prefix internal implementation methods with _ to clarify the public API boundary of the Converter class: emit -> _emit, emit1 -> _emit1, is_castable -> _is_castable, generate_unique_name -> _generate_unique_name, warn -> _warn, fail -> _fail Update autocast.py call sites accordingly with pylint protected-access suppressions (tightly coupled sibling module). The true public API remains: translate_function_def and translate_function_signature. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>
❌ 1 Tests Failed:
View the full list of 1 ❄️ flaky test(s)
To view more test analytics, go to the Test Analytics Dashboard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.