[SPARK-41034][CONNECT][PYTHON][FOLLOW-UP] Fix mypy annotations test
[SPARK-41034][CONNECT][PYTHON][FOLLOW-UP] Fix mypy annotations test

### What changes were proposed in this pull request?
Fix python mypy

### Why are the changes needed?
https://github.com/apache/spark/pull/38541 breaks the linter

```
starting mypy annotations test...
annotations failed mypy checks:
python/pyspark/sql/connect/plan.py:683: error: Argument 1 to "plan" of "LogicalPlan" has incompatible type "Optional[RemoteSparkSession]"; expected "RemoteSparkSession"  [arg-type]
python/pyspark/sql/connect/plan.py:815: error: Argument 1 to "plan" of "LogicalPlan" has incompatible type "Optional[RemoteSparkSession]"; expected "RemoteSparkSession"  [arg-type]
Found 2 errors in 1 file (checked 369 source files)
1
```

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
local test

Closes #38597 from zhengruifeng/fix_py_lint_1.

Authored-by: Ruifeng Zheng <21ef94aec54fae1a36abbd011347596ae66d9959@apache.org>
Signed-off-by: Hyukjin Kwon <2680965ad5aae29275c8fb10150cb10f5554e78b@apache.org>

wangyum/spark,hvanhovell/spark,ueshin/apache-spark,dongjoon-hyun/spark,zzcclp/spark,srowen/spark,hvanhovell/spark,vinodkc/spark,ueshin/apache-spark,apache/spark,wangyum/spark,zzcclp/spark,mahak/spark,HyukjinKwon/spark,hvanhovell/spark,vinodkc/spark,dongjoon-hyun/spark,hvanhovell/spark,mahak/spark,srowen/spark,ueshin/apache-spark,vinodkc/spark,ueshin/apache-spark,ueshin/apache-spark,zzcclp/spark,wangyum/spark,srowen/spark,HyukjinKwon/spark,hvanhovell/spark,vinodkc/spark,HyukjinKwon/spark,mahak/spark,zzcclp/spark,srowen/spark,mahak/spark,apache/spark,srowen/spark,dongjoon-hyun/spark,mahak/spark,ueshin/apache-spark,HyukjinKwon/spark,apache/spark,dongjoon-hyun/spark,wangyum/spark,zzcclp/spark,wangyum/spark,apache/spark,mahak/spark,hvanhovell/spark,wangyum/spark,zzcclp/spark,HyukjinKwon/spark,srowen/spark,vinodkc/spark,hvanhovell/spark,dongjoon-hyun/spark,vinodkc/spark,dongjoon-hyun/spark,ueshin/apache-spark,HyukjinKwon/spark,dongjoon-hyun/spark,HyukjinKwon/spark,mahak/spark,vinodkc/spark,apache/spark,wangyum/spark,srowen/spark,apache/spark,zzcclp/spark,apache/spark