Skip to content

Commit cf67bb6

Browse files
Merge pull request #75 from ImperialCollegeLondon/DesignPatternBlog-patch
Follow PEP8 standard on library imports. `import` has higher `precede…
2 parents 40aa55a + 48c3756 commit cf67bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/posts/20241031_design_patterns_2024.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,9 @@ Translating the UML diagram to Python code then looks as follows:
286286

287287
```python
288288
from dataclasses import dataclass
289-
import numpy as np
290289
from scipy.stats import norm
291290
from typing import Callable, Tuple
291+
import numpy as np
292292

293293

294294
OptionPriceStrategy = Callable[['BlackScholesOption'], float] # define the OptionPriceStrategy type as a Callable that accepts a BlackScholesOption and returns a float

0 commit comments

Comments
 (0)