Fix type hint in Materials class (#2745)

This commit is contained in:
Paul Romano 2023-10-30 07:29:28 -05:00 committed by GitHub
parent 751ea98074
commit 02bd680965
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -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()
#===============================================================================

View file

@ -1713,7 +1713,7 @@ class Materials(cv.CheckedList):
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 @@ class Materials(cv.CheckedList):
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