Skip to content

Commit c77da02

Browse files
committed
Attemp to fix python lint errors
1 parent f1b53eb commit c77da02

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

utils/gyb_syntax_support/AttributeNodes.py

+18-17
Original file line numberDiff line numberDiff line change
@@ -102,33 +102,34 @@
102102
# named-attribute-string-arg -> 'name': string-literal
103103
Node('NamedAttributeStringArgument', kind='Syntax',
104104
description='''
105-
The argument for the `@_dynamic_replacement` or `@_private` attribute \
106-
of the form `for: "function()"` or `sourceFile: "Src.swift"`
105+
The argument for the `@_dynamic_replacement` or `@_private` \
106+
attribute of the form `for: "function()"` or `sourceFile: \
107+
"Src.swift"`
107108
''',
108109
children=[
109110
Child('NameTok', kind='Token',
110111
description='The label of the argument'),
111112
Child('Colon', kind='ColonToken',
112113
description='The colon separating the label and the value'),
113114
Child('StringOrDeclname', kind='Syntax', node_choices=[
114-
Child('String', kind='StringLiteralToken'),
115-
Child('Declname', kind='DeclName'),
115+
Child('String', kind='StringLiteralToken'),
116+
Child('Declname', kind='DeclName'),
116117
]),
117118
]),
118119
Node('DeclName', kind='Syntax', children=[
119-
Child('DeclBaseName', kind='Syntax', description='''
120-
The base name of the protocol\'s requirement.
121-
''',
122-
node_choices=[
123-
Child('Identifier', kind='IdentifierToken'),
124-
Child('Operator', kind='PrefixOperatorToken'),
125-
]),
126-
Child('DeclNameArguments', kind='DeclNameArguments',
127-
is_optional=True, description='''
128-
The argument labels of the protocol\'s requirement if it \
129-
is a function requirement.
130-
'''),
131-
]),
120+
Child('DeclBaseName', kind='Syntax', description='''
121+
The base name of the protocol\'s requirement.
122+
''',
123+
node_choices=[
124+
Child('Identifier', kind='IdentifierToken'),
125+
Child('Operator', kind='PrefixOperatorToken'),
126+
]),
127+
Child('DeclNameArguments', kind='DeclNameArguments',
128+
is_optional=True, description='''
129+
The argument labels of the protocol\'s requirement if it \
130+
is a function requirement.
131+
'''),
132+
]),
132133
# The argument of '@_implements(...)'
133134
# implements-attr-arguments -> simple-type-identifier ','
134135
# (identifier | operator) decl-name-arguments

0 commit comments

Comments
 (0)