idaholab / MontePy

MontePy is the most user friendly Python library (API) to read, edit, and write MCNP input files.
https://www.montepy.org/
MIT License
32 stars 7 forks source link

Fixed edge case of bad typing in parser #471

Closed MicahGale closed 3 months ago

MicahGale commented 3 months ago

Description

This bug was caused by bad type enforcement in PaddingNode when it could be passed a CommentNode or str. Handled this checking for CommentNode while appending.

Fixes #461

Checklist