Can you post a screengrab of the expression and codeblock from Pro? Also your text got formatted into an emoji.
This is likely the root. Trying to verify "blank" values in field calculator is a mess.
Your expression for the above code block would need to be:
RampQA(!ramp_type!)
You don't even need a code block for this, a Python 6.13. Conditional expressions in the expression block will do the trick:
"Ramp type is blank" if !ramp_type! is None else !ramp_type!