mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Fix type hint in Materials class (#2745)
This commit is contained in:
parent
751ea98074
commit
02bd680965
2 changed files with 3 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
#===============================================================================
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue