Skip to content

Commit

Permalink
Merge branch 'main' into python-3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmundt authored Nov 12, 2024
2 parents f35b608 + af99289 commit a440cea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyomo/core/expr/visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1708,6 +1708,9 @@ def visiting_potential_leaf(self, node):
if node is None:
return True, None

if node.__class__ in native_numeric_types:
return True, str(node)

if node.__class__ in nonpyomo_leaf_types:
return True, repr(node)

Expand Down

0 comments on commit a440cea

Please sign in to comment.