Skip to content

Commit e6dac54

Browse files
Seppli11sonartech
authored andcommitted
SONARPY-3249 S7471: master and appName are not required in AWS Glue (#469)
GitOrigin-RevId: bdcff8b662cab071d0c03d017f3a022f4b58b01a
1 parent 4fb8307 commit e6dac54

6 files changed

Lines changed: 29 additions & 3 deletions

File tree

python-frontend/src/main/resources/org/sonar/python/types/custom_protobuf/awsglue.context.protobuf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
awsglue.context�
3+
GlueContextawsglue.context.GlueContext"pyspark.sql.context.SQLContext*P
4+
__init__$awsglue.context.GlueContext.__init__*
5+
self*
6+
args*
7+
8+
kwargs*�
9+
__annotations__awsglue.context.__annotations__W
10+
builtins.dict[builtins.str,Any]
11+
builtins.str" builtins.str
12+
Any"builtins.dict

python-frontend/src/main/resources/org/sonar/python/types/custom_protobuf/awsglue.protobuf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
awsglue*h
3+
__path__awsglue.__path__J
4+
builtins.list[builtins.str]
5+
builtins.str" builtins.str"builtins.list*�
6+
__annotations__awsglue.__annotations__W
7+
builtins.dict[builtins.str,Any]
8+
builtins.str" builtins.str
9+
Any"builtins.dict
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
1c5af7bc1f8dfc4ed572ae2100b35725dc1ea18531f5a1c018ffc9f31a9a3bd0
2-
07646675b38838b8f4a487e1cd2f23e17e087f0cd6aedb0cbf4a76ffe0ad6ff5
1+
46efbb22e17ffc58924d64023171174b045e450e36defec2eccffe2f0642838f
2+
81e82f877db08c18f08310f54c3493a5c6a1385ee196d343d4e3e94ef6614539

python-frontend/typeshed_serializer/resources/custom/awsglue/__init__.pyi

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from pyspark.sql import SQLContext
2+
3+
class GlueContext(SQLContext):
4+
def __init__(self, *args, **kwargs):
5+
...

python-frontend/typeshed_serializer/tests/test_serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_custom_stubs_serializer(typeshed_custom_stubs):
7474
custom_stubs_serializer.serialize()
7575
assert custom_stubs_serializer.get_build_result.call_count == 1
7676
# Not every files from "typeshed_custom_stubs" build are serialized, as some are builtins
77-
assert symbols.save_module.call_count == 178
77+
assert symbols.save_module.call_count == 180
7878

7979

8080
def test_importer_serializer():

0 commit comments

Comments
 (0)