What does this mean in PyTeal subroutines?

TxnExpr and Expr are both Pyteal Types, in the example you posted its a type hint to convey what is being returned from the function.