From 6d107fb07d8c7f761ecc062fb589291acb51a8d0 Mon Sep 17 00:00:00 2001 From: chriddyp Date: Wed, 3 Jan 2018 16:36:21 -0500 Subject: [PATCH] another round of flake8 and pylint --- dash/dash.py | 25 +++++++++++++------------ dash/development/base_component.py | 1 + 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/dash/dash.py b/dash/dash.py index bb6a13c62a..8c1f1ce080 100644 --- a/dash/dash.py +++ b/dash/dash.py @@ -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 @@ -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(''' diff --git a/dash/development/base_component.py b/dash/development/base_component.py index 42fbe901d5..aee73fdf4d 100644 --- a/dash/development/base_component.py +++ b/dash/development/base_component.py @@ -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