From da67665b62c75fe10a1494e3bc7d944963127fc0 Mon Sep 17 00:00:00 2001 From: Shivesh Mandalia Date: Mon, 20 Apr 2020 01:25:38 +0100 Subject: Add __slots__ --- utils/engine.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils/engine.py') diff --git a/utils/engine.py b/utils/engine.py index f4169ec..f1a36af 100644 --- a/utils/engine.py +++ b/utils/engine.py @@ -33,6 +33,7 @@ class MCResult: MC standard error. """ + __slots__ = ['price', 'stderr'] price: float stderr: float @@ -67,6 +68,7 @@ class PricingEngine: path=PathGenerator(S=100.0, r=0.1, div=0.01, vol=0.3)) """ + __slots__ = 'payoff', 'path' payoff: BasePayoff path: PathGenerator -- cgit v1.2.3