Skip to content

Commit

Permalink
another round of flake8 and pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
chriddyp committed Jan 3, 2018
1 parent 5e5a5fb commit 6d107fb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
25 changes: 13 additions & 12 deletions dash/dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,12 +402,13 @@ def _validate_callback(self, output, inputs, state, events):
"{}" doesn't have "{}" as a property.\n
Here is a list of the available properties in "{}":
{}
'''.format(arg.component_property,
arg.component_id,
arg.component_property,
arg.component_id,
component.available_properties)
.replace(' ', ''))
'''.format(
arg.component_property,
arg.component_id,
arg.component_property,
arg.component_id,
component.available_properties).replace(
' ', ''))

if (hasattr(arg, 'component_event') and
arg.component_event not in
Expand All @@ -418,12 +419,12 @@ def _validate_callback(self, output, inputs, state, events):
"{}" doesn't have "{}" as an event.\n
Here is a list of the available events in "{}":
{}
'''.format(arg.component_event,
arg.component_id,
arg.component_event,
arg.component_id,
component.available_events)
.replace(' ', ''))
'''.format(
arg.component_event,
arg.component_id,
arg.component_event,
arg.component_id,
component.available_events).replace(' ', ''))

if state and not events and not inputs:
raise exceptions.MissingEventsException('''
Expand Down
1 change: 1 addition & 0 deletions dash/development/base_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ def __repr__(self):
d = c.format(**locals())

scope = {'Component': Component}
# pylint: disable=exec-used
exec(d, scope)
result = scope[typename]
return result
Expand Down

0 comments on commit 6d107fb

Please sign in to comment.