Skip to content

Commit dba3dae

Browse files
committed
fix
1 parent 138587e commit dba3dae

File tree

12 files changed

+1777
-1760
lines changed

12 files changed

+1777
-1760
lines changed

python/pyspark/sql/connect/proto/base_pb2.pyi

Lines changed: 366 additions & 374 deletions
Large diffs are not rendered by default.

python/pyspark/sql/connect/proto/catalog_pb2.pyi

Lines changed: 99 additions & 109 deletions
Large diffs are not rendered by default.

python/pyspark/sql/connect/proto/commands_pb2.pyi

Lines changed: 227 additions & 219 deletions
Large diffs are not rendered by default.

python/pyspark/sql/connect/proto/common_pb2.pyi

Lines changed: 65 additions & 69 deletions
Large diffs are not rendered by default.

python/pyspark/sql/connect/proto/example_plugins_pb2.pyi

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,61 +33,68 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3333
See the License for the specific language governing permissions and
3434
limitations under the License.
3535
"""
36-
3736
import builtins
3837
import google.protobuf.descriptor
3938
import google.protobuf.message
4039
import pyspark.sql.connect.proto.expressions_pb2
4140
import pyspark.sql.connect.proto.relations_pb2
42-
import typing
41+
import sys
42+
43+
if sys.version_info >= (3, 8):
44+
import typing as typing_extensions
45+
else:
46+
import typing_extensions
4347

4448
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
4549

46-
@typing.final
4750
class ExamplePluginRelation(google.protobuf.message.Message):
4851
DESCRIPTOR: google.protobuf.descriptor.Descriptor
4952

5053
INPUT_FIELD_NUMBER: builtins.int
5154
CUSTOM_FIELD_FIELD_NUMBER: builtins.int
52-
custom_field: builtins.str
5355
@property
5456
def input(self) -> pyspark.sql.connect.proto.relations_pb2.Relation: ...
57+
custom_field: builtins.str
5558
def __init__(
5659
self,
5760
*,
5861
input: pyspark.sql.connect.proto.relations_pb2.Relation | None = ...,
5962
custom_field: builtins.str = ...,
6063
) -> None: ...
61-
def HasField(self, field_name: typing.Literal["input", b"input"]) -> builtins.bool: ...
64+
def HasField(
65+
self, field_name: typing_extensions.Literal["input", b"input"]
66+
) -> builtins.bool: ...
6267
def ClearField(
63-
self, field_name: typing.Literal["custom_field", b"custom_field", "input", b"input"]
68+
self,
69+
field_name: typing_extensions.Literal["custom_field", b"custom_field", "input", b"input"],
6470
) -> None: ...
6571

6672
global___ExamplePluginRelation = ExamplePluginRelation
6773

68-
@typing.final
6974
class ExamplePluginExpression(google.protobuf.message.Message):
7075
DESCRIPTOR: google.protobuf.descriptor.Descriptor
7176

7277
CHILD_FIELD_NUMBER: builtins.int
7378
CUSTOM_FIELD_FIELD_NUMBER: builtins.int
74-
custom_field: builtins.str
7579
@property
7680
def child(self) -> pyspark.sql.connect.proto.expressions_pb2.Expression: ...
81+
custom_field: builtins.str
7782
def __init__(
7883
self,
7984
*,
8085
child: pyspark.sql.connect.proto.expressions_pb2.Expression | None = ...,
8186
custom_field: builtins.str = ...,
8287
) -> None: ...
83-
def HasField(self, field_name: typing.Literal["child", b"child"]) -> builtins.bool: ...
88+
def HasField(
89+
self, field_name: typing_extensions.Literal["child", b"child"]
90+
) -> builtins.bool: ...
8491
def ClearField(
85-
self, field_name: typing.Literal["child", b"child", "custom_field", b"custom_field"]
92+
self,
93+
field_name: typing_extensions.Literal["child", b"child", "custom_field", b"custom_field"],
8694
) -> None: ...
8795

8896
global___ExamplePluginExpression = ExamplePluginExpression
8997

90-
@typing.final
9198
class ExamplePluginCommand(google.protobuf.message.Message):
9299
DESCRIPTOR: google.protobuf.descriptor.Descriptor
93100

@@ -98,6 +105,8 @@ class ExamplePluginCommand(google.protobuf.message.Message):
98105
*,
99106
custom_field: builtins.str = ...,
100107
) -> None: ...
101-
def ClearField(self, field_name: typing.Literal["custom_field", b"custom_field"]) -> None: ...
108+
def ClearField(
109+
self, field_name: typing_extensions.Literal["custom_field", b"custom_field"]
110+
) -> None: ...
102111

103112
global___ExamplePluginCommand = ExamplePluginCommand

0 commit comments

Comments
 (0)