Commit e27ddac
Use class-based NamedTuple for Model definition
Updated Model definition to use modern class-based NamedTuple syntax
with type annotations instead of collections.namedtuple, matching the
style used for ExtendedModel in the exercise solution.
Before: Model = namedtuple('Model', ('β', 'γ', 'x_grid'))
After: class Model(NamedTuple):
β: float
γ: float
x_grid: np.ndarray
This provides better type hints and is more consistent with modern
Python typing conventions.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent e5c45f4 commit e27ddac
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
180 | 179 | | |
181 | 180 | | |
182 | 181 | | |
183 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
| |||
448 | 450 | | |
449 | 451 | | |
450 | 452 | | |
451 | | - | |
| 453 | + | |
452 | 454 | | |
453 | 455 | | |
454 | 456 | | |
| |||
0 commit comments