Skip to content

Correct the type for RunMode.build_mode#152

Open
rswarbrick wants to merge 1 commit intolowRISC:masterfrom
rswarbrick:runmode-build-mode-type
Open

Correct the type for RunMode.build_mode#152
rswarbrick wants to merge 1 commit intolowRISC:masterfrom
rswarbrick:runmode-build-mode-type

Conversation

@rswarbrick
Copy link
Copy Markdown
Contributor

This is a bit of an ugly dance, but checks the type properly at run-time and also convinces Pyright about the existence and type of RunMode.build_mode.

This is a bit of an ugly dance, but checks the type properly at
run-time and also convinces Pyright about the existence and type of
RunMode.build_mode.

Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
Copy link
Copy Markdown
Contributor

@AlexJones0 AlexJones0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a disclaimer, I haven't looked at DVSim's modes at all before. But from a pure Python perspective this change LGTM.

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