Maciej Szymkiewicz created SPARK-33457:
------------------------------------------
Summary: Adjust mypy configuration
Key: SPARK-33457
URL: https://issues.apache.org/jira/browse/SPARK-33457
Project: Spark
Issue Type: Sub-task
Components: PySpark
Affects Versions: 3.1.0
Reporter: Maciej Szymkiewicz
At the moment, with exception to type ignores, we use default MyPy
configuration. These already provide decent coverage, but are somewhat less
restrictive than the ones used in {{typeshed}} and {{pyspark-stubs}}.
We should consider at least the following:
- {{strict_optional}}
- {{no_implicit_optional}}
It might be also a good idea to add {{disallow_untyped_defs}}, which will allow
us to catch any instances of user-facing code, that are missing annotations.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]