From 924f441a53311d1a4a915b4e4fc4c20a8722a86e Mon Sep 17 00:00:00 2001 From: Chandra Sanapala Date: Thu, 12 Sep 2024 20:25:44 +0530 Subject: [PATCH] licensing and lint errors --- .../antlr_parser/FuncTestCaseLexer.py | 1 + .../antlr_parser/FuncTestCaseParser.py | 26 +------------------ .../FuncTestCaseParserListener.py | 3 ++- .../antlr_parser/FuncTestCaseParserVisitor.py | 1 + tests/coverage/antlr_parser/SubstraitLexer.py | 1 + 5 files changed, 6 insertions(+), 26 deletions(-) diff --git a/tests/coverage/antlr_parser/FuncTestCaseLexer.py b/tests/coverage/antlr_parser/FuncTestCaseLexer.py index b031cacbf..7fb7e7df8 100644 --- a/tests/coverage/antlr_parser/FuncTestCaseLexer.py +++ b/tests/coverage/antlr_parser/FuncTestCaseLexer.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # Generated from FuncTestCaseLexer.g4 by ANTLR 4.13.2 from antlr4 import ( ATNDeserializer, diff --git a/tests/coverage/antlr_parser/FuncTestCaseParser.py b/tests/coverage/antlr_parser/FuncTestCaseParser.py index 843bd9bdd..a28fc8d1a 100644 --- a/tests/coverage/antlr_parser/FuncTestCaseParser.py +++ b/tests/coverage/antlr_parser/FuncTestCaseParser.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # Generated from FuncTestCaseParser.g4 by ANTLR 4.13.2 # encoding: utf-8 from antlr4 import ( @@ -5980,7 +5981,6 @@ def copyFrom(self, ctx: ParserRuleContext): super().copyFrom(ctx) class DateContext(ScalarTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.ScalarTypeContext @@ -6005,7 +6005,6 @@ def accept(self, visitor: ParseTreeVisitor): return visitor.visitChildren(self) class StringContext(ScalarTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.ScalarTypeContext @@ -6030,7 +6029,6 @@ def accept(self, visitor: ParseTreeVisitor): return visitor.visitChildren(self) class I64Context(ScalarTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.ScalarTypeContext @@ -6055,7 +6053,6 @@ def accept(self, visitor: ParseTreeVisitor): return visitor.visitChildren(self) class UserDefinedContext(ScalarTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.ScalarTypeContext @@ -6083,7 +6080,6 @@ def accept(self, visitor: ParseTreeVisitor): return visitor.visitChildren(self) class I32Context(ScalarTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.ScalarTypeContext @@ -6108,7 +6104,6 @@ def accept(self, visitor: ParseTreeVisitor): return visitor.visitChildren(self) class IntervalYearContext(ScalarTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.ScalarTypeContext @@ -6133,7 +6128,6 @@ def accept(self, visitor: ParseTreeVisitor): return visitor.visitChildren(self) class UuidContext(ScalarTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.ScalarTypeContext @@ -6158,7 +6152,6 @@ def accept(self, visitor: ParseTreeVisitor): return visitor.visitChildren(self) class I8Context(ScalarTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.ScalarTypeContext @@ -6183,7 +6176,6 @@ def accept(self, visitor: ParseTreeVisitor): return visitor.visitChildren(self) class I16Context(ScalarTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.ScalarTypeContext @@ -6208,7 +6200,6 @@ def accept(self, visitor: ParseTreeVisitor): return visitor.visitChildren(self) class BinaryContext(ScalarTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.ScalarTypeContext @@ -6233,7 +6224,6 @@ def accept(self, visitor: ParseTreeVisitor): return visitor.visitChildren(self) class IntervalDayContext(ScalarTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.ScalarTypeContext @@ -6258,7 +6248,6 @@ def accept(self, visitor: ParseTreeVisitor): return visitor.visitChildren(self) class Fp64Context(ScalarTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.ScalarTypeContext @@ -6283,7 +6272,6 @@ def accept(self, visitor: ParseTreeVisitor): return visitor.visitChildren(self) class Fp32Context(ScalarTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.ScalarTypeContext @@ -6308,7 +6296,6 @@ def accept(self, visitor: ParseTreeVisitor): return visitor.visitChildren(self) class TimeContext(ScalarTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.ScalarTypeContext @@ -6333,7 +6320,6 @@ def accept(self, visitor: ParseTreeVisitor): return visitor.visitChildren(self) class BooleanContext(ScalarTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.ScalarTypeContext @@ -6358,7 +6344,6 @@ def accept(self, visitor: ParseTreeVisitor): return visitor.visitChildren(self) class TimestampContext(ScalarTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.ScalarTypeContext @@ -6383,7 +6368,6 @@ def accept(self, visitor: ParseTreeVisitor): return visitor.visitChildren(self) class TimestampTzContext(ScalarTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.ScalarTypeContext @@ -6532,7 +6516,6 @@ def scalarType(self): class FixedCharTypeContext(ParserRuleContext): __slots__ = "parser" - def __init__( self, parser, parent: ParserRuleContext = None, invokingState: int = -1 ): @@ -6546,7 +6529,6 @@ def copyFrom(self, ctx: ParserRuleContext): super().copyFrom(ctx) class FixedCharContext(FixedCharTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.FixedCharTypeContext @@ -6633,7 +6615,6 @@ def copyFrom(self, ctx: ParserRuleContext): super().copyFrom(ctx) class VarCharContext(VarCharTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.VarCharTypeContext @@ -6720,7 +6701,6 @@ def copyFrom(self, ctx: ParserRuleContext): super().copyFrom(ctx) class FixedBinaryContext(FixedBinaryTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.FixedBinaryTypeContext @@ -6809,7 +6789,6 @@ def copyFrom(self, ctx: ParserRuleContext): super().copyFrom(ctx) class DecimalContext(DecimalTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.DecimalTypeContext @@ -6914,7 +6893,6 @@ def copyFrom(self, ctx: ParserRuleContext): super().copyFrom(ctx) class PrecisionTimestampContext(PrecisionTimestampTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.PrecisionTimestampTypeContext @@ -6989,7 +6967,6 @@ def precisionTimestampType(self): class PrecisionTimestampTZTypeContext(ParserRuleContext): __slots__ = "parser" - def __init__( self, parser, parent: ParserRuleContext = None, invokingState: int = -1 ): @@ -7003,7 +6980,6 @@ def copyFrom(self, ctx: ParserRuleContext): super().copyFrom(ctx) class PrecisionTimestampTZContext(PrecisionTimestampTZTypeContext): - def __init__( self, parser, ctx: ParserRuleContext ): # actually a FuncTestCaseParser.PrecisionTimestampTZTypeContext diff --git a/tests/coverage/antlr_parser/FuncTestCaseParserListener.py b/tests/coverage/antlr_parser/FuncTestCaseParserListener.py index f766f77e3..336e750b5 100644 --- a/tests/coverage/antlr_parser/FuncTestCaseParserListener.py +++ b/tests/coverage/antlr_parser/FuncTestCaseParserListener.py @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # Generated from FuncTestCaseParser.g4 by ANTLR 4.13.2 -from antlr4 import ParseTreeListener, ParseTreeVisitor +from antlr4 import ParseTreeListener if "." in __name__: from .FuncTestCaseParser import FuncTestCaseParser diff --git a/tests/coverage/antlr_parser/FuncTestCaseParserVisitor.py b/tests/coverage/antlr_parser/FuncTestCaseParserVisitor.py index ddfb4af72..18eca41c5 100644 --- a/tests/coverage/antlr_parser/FuncTestCaseParserVisitor.py +++ b/tests/coverage/antlr_parser/FuncTestCaseParserVisitor.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # Generated from FuncTestCaseParser.g4 by ANTLR 4.13.2 from antlr4 import ParseTreeVisitor diff --git a/tests/coverage/antlr_parser/SubstraitLexer.py b/tests/coverage/antlr_parser/SubstraitLexer.py index fdd6f3dba..bb6a256c8 100644 --- a/tests/coverage/antlr_parser/SubstraitLexer.py +++ b/tests/coverage/antlr_parser/SubstraitLexer.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # Generated from SubstraitLexer.g4 by ANTLR 4.13.2 from antlr4 import ( ATNDeserializer,