Skip to content

Commit

Permalink
Fix type hint in Materials class (#2745)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulromano committed Oct 30, 2023
1 parent 751ea98 commit 02bd680
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

#===============================================================================
Expand Down
4 changes: 2 additions & 2 deletions openmc/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 02bd680

Please sign in to comment.