Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit eb82ae1

Browse files
committed
lint fixes
for this PR and the import fix
1 parent c7338c1 commit eb82ae1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Diff for: dash_core_components_base/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"named \n'dash.py' in your current directory.", file=_sys.stderr)
2020
_sys.exit(1)
2121

22-
from ._imports_ import * # noqa: F401, F403
22+
from ._imports_ import * # noqa: F401, F403, E402
2323
from ._imports_ import __all__ # noqa: E402
2424

2525
_current_path = _os.path.dirname(_os.path.abspath(__file__))

Diff for: src/fragments/Graph.react.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,9 @@ class PlotlyGraph extends Component {
227227
return layout;
228228
}
229229
const override = this.getLayoutOverride(responsive);
230-
const prev_layout = this.gd.current.layout; // === this.props.figure.layout
231-
const prev_override_originals = (this.state && this.state.override_originals) || {};
230+
const prev_layout = this.gd.current.layout; // === this.props.figure.layout
231+
const prev_override_originals =
232+
(this.state && this.state.override_originals) || {};
232233
// Store the original data that we're about to override
233234
const override_originals = {};
234235
for (const key in override) {
@@ -245,7 +246,7 @@ class PlotlyGraph extends Component {
245246
for (const key in override) {
246247
layout[key] = override[key];
247248
}
248-
return layout; // not really a clone
249+
return layout; // not really a clone
249250
}
250251

251252
getConfigOverride(responsive) {

0 commit comments

Comments
 (0)