spark-instrumented-optimizer/python/pyspark/resource
zero323 37e1b0c4a5 [SPARK-33086][PYTHON] Add static annotations for pyspark.resource
### What changes were proposed in this pull request?

This PR replaces dynamically generated annotations for following modules:

- `pyspark.resource.information`
- `pyspark.resource.profile`
- `pyspark.resource.requests`

### Why are the changes needed?

These modules where not manually annotated in `pyspark-stubs`, but are part of the public API and we should provide more precise annotations.

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

No.

### How was this patch tested?

MyPy tests:

```
mypy --no-incremental --config python/mypy.ini python/pyspark
```

Closes #29969 from zero323/SPARK-32714-FOLLOW-UP-RESOURCE.

Authored-by: zero323 <mszymkiewicz@gmail.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
2020-10-08 10:32:30 +09:00
..
tests [SPARK-32714][PYTHON] Initial pyspark-stubs port 2020-09-24 14:15:36 +09:00
__init__.py [SPARK-31748][PYTHON] Document resource module in PySpark doc and rename/move classes 2020-05-19 17:09:37 -07:00
information.py [SPARK-31748][PYTHON] Document resource module in PySpark doc and rename/move classes 2020-05-19 17:09:37 -07:00
information.pyi [SPARK-33086][PYTHON] Add static annotations for pyspark.resource 2020-10-08 10:32:30 +09:00
profile.py [SPARK-31748][PYTHON] Document resource module in PySpark doc and rename/move classes 2020-05-19 17:09:37 -07:00
profile.pyi [SPARK-33086][PYTHON] Add static annotations for pyspark.resource 2020-10-08 10:32:30 +09:00
requests.py [SPARK-30794][CORE] Stage Level scheduling: Add ability to set off heap memory 2020-07-27 08:16:13 -05:00
requests.pyi [SPARK-33086][PYTHON] Add static annotations for pyspark.resource 2020-10-08 10:32:30 +09:00