Skip to content

Fix incorrect type hints in EVMDebugger.__init__#79

Open
mazurroman wants to merge 2 commits intomainfrom
rm/optional-type-hints-evm-repl
Open

Fix incorrect type hints in EVMDebugger.__init__#79
mazurroman wants to merge 2 commits intomainfrom
rm/optional-type-hints-evm-repl

Conversation

@mazurroman
Copy link
Member

Parameters that default to None were typed as str/int instead of Optional[str]/Optional[int], making them technically incorrect and causing Mypy to flag them as errors.

Parameters that default to None were typed as str/int instead of
Optional[str]/Optional[int], making them technically incorrect and
causing Mypy to flag them as errors.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Both branches touched __init__'s signature. Resolution combines both
changes: Optional[str]/Optional[int] for all nullable scalar params
(this branch) and Optional[List[str]] = None for constructor_args /
function_args with the `or []` body normalisation (from main).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants