File tree Expand file tree Collapse file tree 10 files changed +12
-53
lines changed Expand file tree Collapse file tree 10 files changed +12
-53
lines changed Original file line number Diff line number Diff line change 1
1
import warnings
2
2
import functools
3
3
4
- _future_flags = set ()
4
+ # Initialize _future_flags with all future flags that are now always in
5
+ # effect.
6
+ _future_flags = {
7
+ 'renderer_defaults' ,
8
+ 'template_defaults' ,
9
+ 'extract_chart_studio' ,
10
+ 'remove_deprecations' ,
11
+ 'v4_subplots' ,
12
+ 'orca_defaults' ,
13
+ 'timezones' ,
14
+ 'trace_uids' ,
15
+ }
5
16
6
17
7
18
def _assert_plotly_not_imported ():
Original file line number Diff line number Diff line change 1
- from __future__ import absolute_import
2
- from _plotly_future_ import _future_flags , _assert_plotly_not_imported
3
-
4
- _assert_plotly_not_imported ()
5
- _future_flags .add ('extract_chart_studio' )
Original file line number Diff line number Diff line change 1
- from __future__ import absolute_import
2
- from _plotly_future_ import _future_flags , _assert_plotly_not_imported
3
-
4
- _assert_plotly_not_imported ()
5
- _future_flags .add ('orca_defaults' )
Original file line number Diff line number Diff line change 1
- from __future__ import absolute_import
2
- from _plotly_future_ import _future_flags , _assert_plotly_not_imported
3
-
4
- _assert_plotly_not_imported ()
5
- _future_flags .add ('remove_deprecations' )
Original file line number Diff line number Diff line change 1
- from __future__ import absolute_import
2
- from _plotly_future_ import _future_flags , _assert_plotly_not_imported
3
-
4
- _assert_plotly_not_imported ()
5
- _future_flags .add ('renderer_defaults' )
Original file line number Diff line number Diff line change 1
- from __future__ import absolute_import
2
- from _plotly_future_ import _future_flags , _assert_plotly_not_imported
3
-
4
- _assert_plotly_not_imported ()
5
- _future_flags .add ('template_defaults' )
Original file line number Diff line number Diff line change 1
- from __future__ import absolute_import
2
- from _plotly_future_ import _future_flags , _assert_plotly_not_imported
3
-
4
- _assert_plotly_not_imported ()
5
- _future_flags .add ('timezones' )
Original file line number Diff line number Diff line change 1
- from __future__ import absolute_import
2
- from _plotly_future_ import _future_flags , _assert_plotly_not_imported
3
-
4
- _assert_plotly_not_imported ()
5
- _future_flags .add ('trace_uids' )
Original file line number Diff line number Diff line change 1
- from __future__ import absolute_import
2
- from _plotly_future_ import (
3
- renderer_defaults ,
4
- template_defaults ,
5
- extract_chart_studio ,
6
- remove_deprecations ,
7
- v4_subplots ,
8
- orca_defaults ,
9
- timezones ,
10
- trace_uids ,
11
- )
12
-
Original file line number Diff line number Diff line change 1
- from __future__ import absolute_import
2
- from _plotly_future_ import _future_flags , _assert_plotly_not_imported
3
-
4
- _assert_plotly_not_imported ()
5
- _future_flags .add ('v4_subplots' )
You can’t perform that action at this time.
0 commit comments