From cbec1ab035a4b4aaca8a102889de59a864b16813 Mon Sep 17 00:00:00 2001 From: John Vincent Cauilan <64677361+johvincau@users.noreply.github.com> Date: Wed, 10 Jul 2024 17:04:09 -0500 Subject: [PATCH] Correct openmc.Geometry initializer to accept iterables of openmc.Cell (#3081) --- openmc/geometry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/geometry.py b/openmc/geometry.py index db927c46ec1..e37a69c73d2 100644 --- a/openmc/geometry.py +++ b/openmc/geometry.py @@ -41,7 +41,7 @@ class Geometry: def __init__( self, - root: typing.Optional[openmc.UniverseBase] = None, + root: openmc.UniverseBase | typing.Iterable[openmc.Cell] | None = None, merge_surfaces: bool = False, surface_precision: int = 10 ):