From 02bd680965caf4ad3154fbdca935be2b1e45d7d5 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Mon, 30 Oct 2023 07:29:28 -0500 Subject: [PATCH] Fix type hint in Materials class (#2745) --- CMakeLists.txt | 1 + openmc/material.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a51db311141..69e7ad9a9cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,6 +120,7 @@ if(OPENMC_USE_DAGMC) message(FATAL_ERROR "Discovered DAGMC Version: ${DAGMC_VERSION}. \ Please update DAGMC to version 3.2.0 or greater.") endif() + message(STATUS "Found DAGMC: ${DAGMC_DIR} (version ${DAGMC_VERSION})") endif() #=============================================================================== diff --git a/openmc/material.py b/openmc/material.py index d8bcc209c16..5af56d64f08 100644 --- a/openmc/material.py +++ b/openmc/material.py @@ -1713,7 +1713,7 @@ def export_to_xml(self, path: PathLike = 'materials.xml', self._write_xml(fh, nuclides_to_ignore=nuclides_to_ignore) @classmethod - def from_xml_element(cls, elem) -> Material: + def from_xml_element(cls, elem) -> Materials: """Generate materials collection from XML file Parameters @@ -1740,7 +1740,7 @@ def from_xml_element(cls, elem) -> Material: return materials @classmethod - def from_xml(cls, path: PathLike = 'materials.xml') -> Material: + def from_xml(cls, path: PathLike = 'materials.xml') -> Materials: """Generate materials collection from XML file Parameters