diff --git a/CHANGELOG.md b/CHANGELOG.md index 77ca89574e..bbfec6130a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ by this anymore :tada: - `app.config` is now a `dict` instead of a class. You can set config variables with `app.config['suppress_callback_exceptions'] = True` now. The previous class-based syntax (e.g. `app.config.suppress_callback_exceptions`) has been maintained for - backwards compatability + backwards compatibility ## Fixed - 0.18.2 introduced a bug that removed the ability for dash to serve the app on @@ -23,8 +23,8 @@ by this anymore :tada: These variables would be shared across apps. This issue has been fixed. Originally reported in https://community.plot.ly/t/flask-endpoint-error/5691/7 - The config setting `supress_callback_exceptions` has been renamed to - `suppress_callback_exceptions`. Previouslly, `suppress` was spelled wrong. - The original config variable is kept for backwards compatability. + `suppress_callback_exceptions`. Previously, `suppress` was spelled wrong. + The original config variable is kept for backwards compatibility. # 0.18.3rc1 - 2017-09-08 The prerelease for 0.18.3 @@ -54,7 +54,7 @@ The prerelease for 0.18.3 ##🔧 Maintenance - 📝 Update README.md -- ✅ Fix CircleCI tests. Note that the the [`dash-renderer`](https://github.com/plotly/dash-renderer) contains the bulk of the integration tests. +- ✅ Fix CircleCI tests. Note that the [`dash-renderer`](https://github.com/plotly/dash-renderer) contains the bulk of the integration tests. - 💄 Flake8 fixes and tests (fixes #99 ) - ✨ Added this CHANGELOG.md diff --git a/dash/_utils.py b/dash/_utils.py index 5a6aa58aec..340abd6c79 100644 --- a/dash/_utils.py +++ b/dash/_utils.py @@ -1,6 +1,7 @@ class AttributeDict(dict): """ Dictionary subclass enabling attribute lookup/assignment of keys/values. + For example:: >>> m = AttributeDict({'foo': 'bar'}) >>> m.foo diff --git a/dash/development/base_component.py b/dash/development/base_component.py index a81a4feb6b..6f4aff9a34 100644 --- a/dash/development/base_component.py +++ b/dash/development/base_component.py @@ -237,7 +237,7 @@ def __repr__(self): parse_events(props), description ) - events = "[" + ', '.join(parse_events(props)) + "]" + events = '[' + ', '.join(parse_events(props)) + ']' if 'children' in props: default_argtext = 'children=None, **kwargs' argtext = 'children=children, **kwargs' diff --git a/tests/test_react.py b/tests/test_react.py index c30c059784..dd7377d25f 100644 --- a/tests/test_react.py +++ b/tests/test_react.py @@ -38,7 +38,7 @@ def setUp(self): self.maxDiff = 100*1000 - @unittest.skip("") + @unittest.skip('') def test_route_list(self): urls = [rule.rule for rule in self.app.server.url_map.iter_rules()] @@ -54,7 +54,7 @@ def test_route_list(self): ]) ) - @unittest.skip("") + @unittest.skip('') def test_initialize_route(self): response = self.client.get('/initialize') self.assertEqual(response.status_code, 200) @@ -65,7 +65,7 @@ def test_initialize_route(self): ) ) - @unittest.skip("") + @unittest.skip('') def test_dependencies_route(self): self.app.callback('header', ['id1']) response = self.client.get('/dependencies') @@ -119,12 +119,12 @@ def test_dependencies_route(self): } ) - @unittest.skip("") + @unittest.skip('') def test_index_html(self): response = self.client.get('/') self.assertEqual(response.status_code, 200) - @unittest.skip("") + @unittest.skip('') def test_single_observer_returning_a_dict(self): @self.app.callback('header', ['id1']) def update_header(input1): @@ -174,7 +174,7 @@ def update_header(input1): } ) - @unittest.skip("") + @unittest.skip('') def test_single_observer_returning_a_component(self): @self.app.callback('header', ['id1']) def update_header(input1): @@ -222,7 +222,7 @@ def update_header(input1): } ) - @unittest.skip("") + @unittest.skip('') def test_single_observer_updating_component_that_doesnt_exist(self): # It's possible to register callbacks for components that don't # exist in the initial layout because users could add them as @@ -271,7 +271,7 @@ def update_header(input1): } ) - @unittest.skip("") + @unittest.skip('') def test_single_observer_with_multiple_controllers(self): @self.app.callback('header', ['id1', 'id2']) def update_header(input1, input2): diff --git a/tests/test_resources.py b/tests/test_resources.py index 002b30ecc2..a25553abe5 100644 --- a/tests/test_resources.py +++ b/tests/test_resources.py @@ -134,14 +134,14 @@ def resource_test(self, css_or_js): resources.config.serve_locally = True with warnings.catch_warnings(record=True) as w: - warnings.simplefilter("always") + warnings.simplefilter('always') if css_or_js == 'css': self.assertEqual( resources.get_all_css(), expected_filtered_relative_resources ) assert len(w) == 1 - assert "A local version of {} is not available".format( + assert 'A local version of {} is not available'.format( extra_resource['external_url'] ) in str(w[-1].message) @@ -151,7 +151,7 @@ def resource_test(self, css_or_js): expected_filtered_relative_resources ) assert len(w) == 1 - assert "A local version of {} is not available".format( + assert 'A local version of {} is not available'.format( extra_resource['external_url'] ) in str(w[-1].message)