Detachment and no expectations are very practical and pragmatic demonstrations of hope.

Expecting, longing, sadness, etc. are the antithesis of hope.

Detaching and getting on with your life is the most hopeful, affirming, positive thing you can do.