The mypy-primer course requires optionally enabling strict mode.
Possible Options
Option 1: One a dropdown to switch between regular mode and strict mode and ability to set the default.
Option 2: No need to give the option to the user, it will hard coded for the example and will be prominently visible.
Looks like option2 is good enough for now.
Suggested interface
```{.python .example .mypy-strict}
....
```
Ideas for implementation
Add JS code in course.js and add an emnvironment variable MYPY_STRICT=true when running it. Also add a label to the controls bar to show that the strict mode is on.
The mypy-primer course requires optionally enabling strict mode.
Possible Options
Option 1: One a dropdown to switch between regular mode and strict mode and ability to set the default.
Option 2: No need to give the option to the user, it will hard coded for the example and will be prominently visible.
Looks like option2 is good enough for now.
Suggested interface
Ideas for implementation
Add JS code in course.js and add an emnvironment variable
MYPY_STRICT=true
when running it. Also add a label to the controls bar to show that the strict mode is on.