From 419778261ac61cab08e800f8f9abce291f86d372 Mon Sep 17 00:00:00 2001 From: Gintare Statkute Date: Mon, 1 Jul 2024 14:43:33 +0200 Subject: [PATCH] spacing --- docs/tutorials/3.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/tutorials/3.rst b/docs/tutorials/3.rst index 5c436c4ae4..aa3db18d1b 100644 --- a/docs/tutorials/3.rst +++ b/docs/tutorials/3.rst @@ -127,12 +127,12 @@ There are many different approaches to fix this memory issue - here are a few of alongside the object. :: class Algorithms: - def __init__(self, inc: int): - self.inc = inc - self.factorial_plus = functools.cache(self._uncached_factorial_plus) + def __init__(self, inc: int): + self.inc = inc + self.factorial_plus = functools.cache(self._uncached_factorial_plus) - def _uncached_factorial_plus(self, n: int) -> int: - return n * self.factorial_plus(n - 1) + self.inc if n > 1 else 1 + self.inc + def _uncached_factorial_plus(self, n: int) -> int: + return n * self.factorial_plus(n - 1) + self.inc if n > 1 else 1 + self.inc def generate_factorial_plus_last_digit(plus_range: int, factorial_range: int): for i in range(plus_range):