(data from pyomo.common.numeric_types)
pyomo.common.numeric_types
Python set used to identify numeric constants, boolean values, strings and instances of NonNumericValue, which is commonly used in code that walks Pyomo expression trees.
NonNumericValue
nonpyomo_leaf_types = native_types + { NonNumericValue }
nonpyomo_leaf_types
native_types