Skip to content

Commit 6d107fb

Browse files
committed
another round of flake8 and pylint
1 parent 5e5a5fb commit 6d107fb

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

Diff for: dash/dash.py

+13-12
Original file line numberDiff line numberDiff line change
@@ -402,12 +402,13 @@ def _validate_callback(self, output, inputs, state, events):
402402
"{}" doesn't have "{}" as a property.\n
403403
Here is a list of the available properties in "{}":
404404
{}
405-
'''.format(arg.component_property,
406-
arg.component_id,
407-
arg.component_property,
408-
arg.component_id,
409-
component.available_properties)
410-
.replace(' ', ''))
405+
'''.format(
406+
arg.component_property,
407+
arg.component_id,
408+
arg.component_property,
409+
arg.component_id,
410+
component.available_properties).replace(
411+
' ', ''))
411412

412413
if (hasattr(arg, 'component_event') and
413414
arg.component_event not in
@@ -418,12 +419,12 @@ def _validate_callback(self, output, inputs, state, events):
418419
"{}" doesn't have "{}" as an event.\n
419420
Here is a list of the available events in "{}":
420421
{}
421-
'''.format(arg.component_event,
422-
arg.component_id,
423-
arg.component_event,
424-
arg.component_id,
425-
component.available_events)
426-
.replace(' ', ''))
422+
'''.format(
423+
arg.component_event,
424+
arg.component_id,
425+
arg.component_event,
426+
arg.component_id,
427+
component.available_events).replace(' ', ''))
427428

428429
if state and not events and not inputs:
429430
raise exceptions.MissingEventsException('''

Diff for: dash/development/base_component.py

+1
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ def __repr__(self):
259259
d = c.format(**locals())
260260

261261
scope = {'Component': Component}
262+
# pylint: disable=exec-used
262263
exec(d, scope)
263264
result = scope[typename]
264265
return result

0 commit comments

Comments
 (0)