Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

Commit 51a8222

Browse files
authored
Add dynamic annotations for pyspark.resource (#448)
1 parent 8de267b commit 51a8222

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

doc/api-coverage.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,14 @@ API Coverage
114114
+------------------------------------------------+---------------------+--------------------+------------+
115115
| `pyspark.profiler`_ ||| |
116116
+------------------------------------------------+---------------------+--------------------+------------+
117-
| `pyspark.resourceinformation`_ | | | |
117+
| `pyspark.resource`_ | | | |
118118
+------------------------------------------------+---------------------+--------------------+------------+
119119
| `pyspark.rdd`_ ||| |
120120
+------------------------------------------------+---------------------+--------------------+------------+
121121
| `pyspark.rddsampler`_ ||| |
122122
+------------------------------------------------+---------------------+--------------------+------------+
123+
| `pyspark.rddsampler`_ ||| |
124+
+------------------------------------------------+---------------------+--------------------+------------+
123125
| `pyspark.resultiterable`_ ||| |
124126
+------------------------------------------------+---------------------+--------------------+------------+
125127
| `pyspark.serializers`_ ||| |
@@ -267,6 +269,7 @@ API Coverage
267269
.. _pyspark.resourceinformation: ../third_party/3/pyspark/resourceinformation.pyi
268270
.. _pyspark.rdd: ../third_party/3/pyspark/rdd.pyi
269271
.. _pyspark.rddsampler: ../third_party/3/pyspark/rddsampler.pyi
272+
.. _pyspark.resource: ../third_party/3/pyspark/resource.pyi
270273
.. _pyspark.resultiterable: ../third_party/3/pyspark/resultiterable.pyi
271274
.. _pyspark.serializers: ../third_party/3/pyspark/serializers.pyi
272275
.. _pyspark.sql: ../third_party/3/pyspark/sql/__init__.pyi

third_party/3/pyspark/resource.pyi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from typing import Any
2+
3+
class ResourceInformation:
4+
def __init__(self, name: Any, addresses: Any) -> None: ...
5+
@property
6+
def name(self): ...
7+
@property
8+
def addresses(self): ...

0 commit comments

Comments
 (0)