Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Acepace remove future #4951

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion packages/python/chart-studio/chart_studio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from __future__ import absolute_import
from chart_studio import plotly, dashboard_objs, grid_objs, session, tools
2 changes: 0 additions & 2 deletions packages/python/chart-studio/chart_studio/api/v2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from chart_studio.api.v2 import (
dash_apps,
dashboards,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Beta interface to Plotly's /v2/dash-apps endpoints.
"""
from __future__ import absolute_import


from chart_studio.api.v2.utils import build_url, request

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Partially complete at the moment. Only being used by
plotly.plotly.dashboard_ops.
"""
from __future__ import absolute_import


from chart_studio.api.v2.utils import build_url, request

Expand Down
2 changes: 1 addition & 1 deletion packages/python/chart-studio/chart_studio/api/v2/files.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Interface to Plotly's /v2/files endpoints."""
from __future__ import absolute_import


from chart_studio.api.v2.utils import build_url, make_params, request

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Interface to Plotly's /v2/folders endpoints."""
from __future__ import absolute_import


from chart_studio.api.v2.utils import build_url, make_params, request

Expand Down
2 changes: 1 addition & 1 deletion packages/python/chart-studio/chart_studio/api/v2/grids.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Interface to Plotly's /v2/grids endpoints."""
from __future__ import absolute_import


from chart_studio.api.v2.utils import build_url, make_params, request

Expand Down
2 changes: 1 addition & 1 deletion packages/python/chart-studio/chart_studio/api/v2/images.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Interface to Plotly's /v2/images endpoints."""
from __future__ import absolute_import


from chart_studio.api.v2.utils import build_url, request

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Interface to Plotly's /v2/plot-schema endpoints."""
from __future__ import absolute_import


from chart_studio.api.v2.utils import build_url, make_params, request

Expand Down
2 changes: 1 addition & 1 deletion packages/python/chart-studio/chart_studio/api/v2/plots.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Interface to Plotly's /v2/plots endpoints."""
from __future__ import absolute_import


from chart_studio.api.v2.utils import build_url, make_params, request

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Interface to Plotly's /v2/spectacle-presentations endpoint.
"""
from __future__ import absolute_import


from chart_studio.api.v2.utils import build_url, request

Expand Down
2 changes: 1 addition & 1 deletion packages/python/chart-studio/chart_studio/api/v2/users.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Interface to Plotly's /v2/files endpoints."""
from __future__ import absolute_import


from chart_studio.api.v2.utils import build_url, request

Expand Down
2 changes: 0 additions & 2 deletions packages/python/chart-studio/chart_studio/api/v2/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import requests
import json as _json
from requests.exceptions import RequestException
Expand Down
2 changes: 1 addition & 1 deletion packages/python/chart-studio/chart_studio/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This is promoted to its own module to simplify imports.

"""
from __future__ import absolute_import


from chart_studio import session, tools

Expand Down
2 changes: 1 addition & 1 deletion packages/python/chart-studio/chart_studio/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
A module that contains plotly's exception hierarchy.

"""
from __future__ import absolute_import


from chart_studio.api.utils import to_native_utf8_string

Expand Down
2 changes: 0 additions & 2 deletions packages/python/chart-studio/chart_studio/files.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import os

# file structure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
=========

"""
from __future__ import absolute_import


from chart_studio.grid_objs.grid_objs import Grid, Column
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
=========

"""
from __future__ import absolute_import


import _plotly_utils.exceptions

Expand Down
2 changes: 1 addition & 1 deletion packages/python/chart-studio/chart_studio/plotly/plotly.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
4. update plot_options with kwargs!

"""
from __future__ import absolute_import


import base64
import copy
Expand Down
2 changes: 1 addition & 1 deletion packages/python/chart-studio/chart_studio/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
which user they're signed in as, and plotting defaults.

"""
from __future__ import absolute_import


import copy

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from unittest import TestCase

from chart_studio.files import CONFIG_FILE, FILE_CONTENT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from unittest import TestCase

import pytest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
A module intended for use with Nose.

"""
from __future__ import absolute_import


from unittest import TestCase

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
A module intended for use with Nose.

"""
from __future__ import absolute_import


import _plotly_utils.exceptions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from requests import Response

from chart_studio.session import sign_in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from chart_studio.api.v2 import files
from chart_studio.tests.test_plot_ly.test_api import PlotlyApiTestCase

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from chart_studio.api.v2 import folders
from chart_studio.tests.test_plot_ly.test_api import PlotlyApiTestCase

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import json as _json

from chart_studio.api.v2 import grids
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import json as _json

from chart_studio.api.v2 import images
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from chart_studio.api.v2 import plot_schema
from chart_studio.tests.test_plot_ly.test_api import PlotlyApiTestCase

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from chart_studio.api.v2 import plots
from chart_studio.tests.test_plot_ly.test_api import PlotlyApiTestCase

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from chart_studio.api.v2 import users
from chart_studio.tests.test_plot_ly.test_api import PlotlyApiTestCase

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import json as _json
from requests.exceptions import ConnectionError

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
A module intended for use with Nose.

"""
from __future__ import absolute_import


from unittest import TestCase
from _plotly_utils.exceptions import PlotlyError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
A module intended for use with Nose.

"""
from __future__ import absolute_import


import _plotly_utils.exceptions
from chart_studio import exceptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
A module intended for use with Nose.

"""
from __future__ import absolute_import


import random
import string
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import imghdr
import tempfile
import os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
A module intended for use with Nose.

"""
from __future__ import absolute_import


import random
import string
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

import _plotly_utils.exceptions
from chart_studio import plotly as py, exceptions
import chart_studio.session as session
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
A module intended for use with Nose.

"""
from __future__ import absolute_import


import urllib

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import

from chart_studio.tests.utils import PlotlyTestCase

from chart_studio import session
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
A module intended for use with Nose.

"""
from __future__ import absolute_import


from unittest import TestCase
from _plotly_utils.exceptions import PlotlyError
Expand Down
2 changes: 1 addition & 1 deletion packages/python/chart-studio/chart_studio/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Functions that USERS will possibly want access to.

"""
from __future__ import absolute_import


import urllib
import warnings
Expand Down
2 changes: 1 addition & 1 deletion packages/python/chart-studio/chart_studio/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Low-level functionality NOT intended for users to EVER use.

"""
from __future__ import absolute_import


import os.path
import re
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion packages/python/plotly/codegen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def perform_codegen():
root_datatype_imports.append(f"._deprecations.{dep_clas}")

optional_figure_widget_import = f"""
if sys.version_info < (3, 7) or TYPE_CHECKING:
if TYPE_CHECKING:
try:
import ipywidgets as _ipywidgets
from packaging.version import Version as _Version
Expand Down
2 changes: 1 addition & 1 deletion packages/python/plotly/codegen/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def build_from_imports_py(rel_modules=(), rel_classes=(), init_extra=""):
result = f"""\
import sys
from typing import TYPE_CHECKING
if sys.version_info < (3, 7) or TYPE_CHECKING:
if TYPE_CHECKING:
{imports_str}
else:
from _plotly_utils.importers import relative_import
Expand Down
2 changes: 1 addition & 1 deletion packages/python/plotly/plotly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from _plotly_utils.importers import relative_import


if sys.version_info < (3, 7) or TYPE_CHECKING:
if TYPE_CHECKING:
from plotly import (
graph_objs,
tools,
Expand Down
4 changes: 2 additions & 2 deletions packages/python/plotly/plotly/graph_objects/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
from typing import TYPE_CHECKING

if sys.version_info < (3, 7) or TYPE_CHECKING:
if TYPE_CHECKING:
from ..graph_objs import Waterfall
from ..graph_objs import Volume
from ..graph_objs import Violin
Expand Down Expand Up @@ -268,7 +268,7 @@
)


if sys.version_info < (3, 7) or TYPE_CHECKING:
if TYPE_CHECKING:
try:
import ipywidgets as _ipywidgets
from packaging.version import Version as _Version
Expand Down
4 changes: 2 additions & 2 deletions packages/python/plotly/plotly/graph_objs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
from typing import TYPE_CHECKING

if sys.version_info < (3, 7) or TYPE_CHECKING:
if TYPE_CHECKING:
from ._bar import Bar
from ._barpolar import Barpolar
from ._box import Box
Expand Down Expand Up @@ -268,7 +268,7 @@
)


if sys.version_info < (3, 7) or TYPE_CHECKING:
if TYPE_CHECKING:
try:
import ipywidgets as _ipywidgets
from packaging.version import Version as _Version
Expand Down
2 changes: 1 addition & 1 deletion packages/python/plotly/plotly/graph_objs/bar/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
from typing import TYPE_CHECKING

if sys.version_info < (3, 7) or TYPE_CHECKING:
if TYPE_CHECKING:
from ._error_x import ErrorX
from ._error_y import ErrorY
from ._hoverlabel import Hoverlabel
Expand Down
Loading