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

Remove unused imports #40

Merged
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion examples/bikesharing_dashboard/bikesharing_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import pandas as pd
import panel as pn
import requests

from panel_gwalker import GraphicWalker

Expand Down
1 change: 0 additions & 1 deletion examples/earthquake_dashboard/earthquake_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import pandas as pd
import panel as pn
import requests

from panel_gwalker import GraphicWalker

Expand Down
1 change: 0 additions & 1 deletion examples/reference_app/reference_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import pandas as pd
import panel as pn
import requests

from panel_gwalker import GraphicWalker

Expand Down
5 changes: 0 additions & 5 deletions src/panel_gwalker/_gwalker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@
import os
import sys
import uuid
from functools import partial
from os import PathLike
from pathlib import Path
from typing import (
IO,
Any,
Callable,
Concatenate,
Coroutine,
Literal,
Optional,
ParamSpec,
)

Expand Down
8 changes: 1 addition & 7 deletions src/panel_gwalker/_pygwalker.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import json
import sys
import weakref
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Protocol, runtime_checkable

import pandas as pd
from sqlalchemy import create_engine, text
from sqlalchemy.engine import Engine
from typing import TYPE_CHECKING, Any, Dict, List, Protocol, runtime_checkable

if TYPE_CHECKING:
try:
Expand Down
2 changes: 1 addition & 1 deletion src/panel_gwalker/_tabular_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import TYPE_CHECKING, Any, Union
from typing import Any

import bokeh.core.properties as bp
import narwhals as nw
Expand Down
3 changes: 0 additions & 3 deletions src/panel_gwalker/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,12 @@
import os
import sys
from pathlib import Path
from typing import Dict

import narwhals as nw
import numpy as np
import pandas as pd
import panel as pn
import requests
from narwhals.dataframe import LazyFrame
from narwhals.dependencies import is_into_dataframe
from narwhals.typing import FrameT

logger = logging.getLogger("panel-graphic-walker")
Expand Down
11 changes: 0 additions & 11 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
import json
from asyncio import sleep
from pathlib import Path
from unittest.mock import patch

import dask.dataframe as dd
import duckdb
import pandas as pd
import param
import polars as pl
import pytest
from pygwalker.data_parsers.database_parser import Connector as DatabaseConnector
from sqlalchemy import create_engine, text

from panel_gwalker import GraphicWalker
from panel_gwalker._utils import _raw_fields

# Using duckdb relation as fixtures requires special care
# See https://github.com/duckdb/duckdb/issues/14771
Expand Down
7 changes: 0 additions & 7 deletions tests/test_graphic_walker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@
from pathlib import Path
from unittest.mock import patch

import dask.dataframe as dd
import duckdb
import pandas as pd
import param
import polars as pl
import pytest
from pygwalker.data_parsers.database_parser import Connector as DatabaseConnector
from sqlalchemy import create_engine, text

from panel_gwalker import GraphicWalker
from panel_gwalker._utils import _raw_fields
Expand Down
3 changes: 0 additions & 3 deletions tests/test_tabular_data.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import pandas as pd
import param
import polars as pl
import pytest
from pygwalker.data_parsers.database_parser import Connector as DatabaseConnector

from panel_gwalker._tabular_data import TabularData, _column_datasource_from_tabular_df

Expand Down
Loading