From 12a0f85ddcf718e8e9459bd72750d033fdc706a9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?K=C3=BChle=2C=20Laura=20Christine=20=28lakue103=29?=
 <laura.kuehle@uni-duesseldorf.de>
Date: Sun, 5 Jun 2022 16:52:27 +0200
Subject: [PATCH] Applied self-referencing in Mesh.

---
 projection_utils.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/projection_utils.py b/projection_utils.py
index 39fe4c7..20b18a8 100644
--- a/projection_utils.py
+++ b/projection_utils.py
@@ -4,6 +4,7 @@
 
 """
 
+from __future__ import annotations
 from functools import cache
 from typing import Tuple
 import numpy as np
@@ -100,7 +101,7 @@ class Mesh:
                 'right_bound': self._right_bound,
                 'num_ghost_cells': self._num_ghost_cells}
 
-    def random_stencil(self, stencil_length: int) -> 'Mesh':
+    def random_stencil(self, stencil_length: int) -> Mesh:
         """Return random stencil.
 
         Build mesh with given number of cell centers around a random point
@@ -116,7 +117,6 @@ class Mesh:
         point = np.random.uniform(self._left_bound, self._right_bound)
 
         # Adjust grid spacing to be within interval if necessary
-        # creation
         grid_spacing = self.cell_len
         while point - stencil_length/2 * grid_spacing < self._left_bound \
                 or point + stencil_length/2 * grid_spacing > self._right_bound:
-- 
GitLab