Skip to content

Commit

Permalink
Merge pull request #75 from ImperialCollegeLondon/DesignPatternBlog-p…
Browse files Browse the repository at this point in the history
…atch

Follow PEP8 standard on library imports. `import` has higher `precede…
  • Loading branch information
HarmonicReflux authored Jan 20, 2025
2 parents 40aa55a + 48c3756 commit cf67bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/posts/20241031_design_patterns_2024.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ Translating the UML diagram to Python code then looks as follows:

```python
from dataclasses import dataclass
import numpy as np
from scipy.stats import norm
from typing import Callable, Tuple
import numpy as np


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

0 comments on commit cf67bb6

Please sign in to comment.