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

MAINT: Remove __futre__ #572

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
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
2 changes: 0 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
from __future__ import annotations

import inspect
import os
import sys
Expand Down
2 changes: 0 additions & 2 deletions doc/source/guide/build_transformer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"metadata": {},
"outputs": [],
"source": [
"from __future__ import annotations\n",
"\n",
"import numpy as np\n",
"\n",
"from dtoolkit.transformer.factory import methodtf_factory"
Expand Down
2 changes: 0 additions & 2 deletions doc/source/guide/tips_about_accessor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@
"metadata": {},
"outputs": [],
"source": [
"from __future__ import annotations\n",
"\n",
"import pandas as pd\n",
"import numpy as np\n",
"\n",
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/dataframe/boolean.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Literal

import pandas as pd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/dataframe/cols.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable

import pandas as pd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/dataframe/decompose.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable
from typing import TYPE_CHECKING

Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/dataframe/drop_inf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Literal

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/dataframe/drop_not_duplicates.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable
from typing import Literal
from typing import Sequence
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/dataframe/expand.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from textwrap import dedent
from typing import Hashable

Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/dataframe/fillna_regression.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable
from typing import Literal
from typing import TYPE_CHECKING
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/dataframe/filter_in.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable
from typing import Iterable
from typing import Literal
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/dataframe/repeat.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable

import pandas as pd
Expand Down
4 changes: 0 additions & 4 deletions dtoolkit/accessor/dataframe/to_series.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
from __future__ import annotations

from typing import Hashable

import pandas as pd

from dtoolkit._typing import SeriesOrFrame
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/dataframe/top_n.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Literal

import pandas as pd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/dataframe/values_to_dict.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable

import pandas as pd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/dataframe/weighted_mean.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable

import pandas as pd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/index/len.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from functools import partial

import pandas as pd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/index/to_set.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable

import pandas as pd
Expand Down
4 changes: 0 additions & 4 deletions dtoolkit/accessor/register.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from functools import wraps
from typing import Callable

Expand Down Expand Up @@ -96,8 +94,6 @@ def register_series_method(name: str = None):
--------
In your library code::

from __future__ import annotations

from dtoolkit.accessor import register_dataframe_method
from dtoolkit.accessor import register_series_method
from dtoolkit.accessor import register_index_method
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/series/cols.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable

import pandas as pd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/series/drop_inf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Literal

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/series/error_report.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

import pandas as pd

from dtoolkit._typing import Number
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/series/expand.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from textwrap import dedent
from typing import Hashable
from typing import Iterable
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/series/jenks_breaks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

import pandas as pd

from dtoolkit.accessor.register import register_series_method
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/series/textdistance.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from functools import lru_cache
from typing import Callable
from warnings import warn
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/series/textdistance_matrix.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Callable

import pandas as pd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/series/top_n.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Literal

import pandas as pd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/accessor/series/values_to_dict.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

import pandas as pd

from dtoolkit.accessor.register import register_series_method
Expand Down
2 changes: 1 addition & 1 deletion dtoolkit/geoaccessor/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self, geopandas_object): # noqa: E999
--------
In your library code::

from __future__ import annotations


from dataclasses import dataclass

Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/dataframe/from_wkb.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable
from typing import TYPE_CHECKING

Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/dataframe/from_wkt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable
from typing import TYPE_CHECKING

Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/dataframe/from_xy.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable
from typing import TYPE_CHECKING

Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/dataframe/geocode.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable
from typing import TYPE_CHECKING

Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/dataframe/to_geoframe.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable
from typing import TYPE_CHECKING

Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geodataframe/drop_duplicates_geometry.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Literal

import geopandas as gpd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geodataframe/duplicated_geometry.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Literal

import geopandas as gpd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geodataframe/filter_geometry.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import TYPE_CHECKING

import geopandas as gpd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geodataframe/geobuffer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable

import geopandas as gpd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geodataframe/geocentroid.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable

import geopandas as gpd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geodataframe/geodistance.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

import geopandas as gpd
import pandas as pd
from pandas.util._decorators import doc
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geodataframe/geodistance_matrix.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

import geopandas as gpd
import pandas as pd
from pandas.util._decorators import doc
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geodataframe/reverse_geocode.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable
from typing import TYPE_CHECKING

Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geodataframe/toposimplify.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Literal

import geopandas as gpd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geodataframe/voronoi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import TYPE_CHECKING

import geopandas as gpd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geodataframe/xy.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable

import geopandas as gpd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geoseries/cncrs_offset.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import get_args
from typing import Literal

Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geoseries/drop_duplicates_geometry.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Literal

import geopandas as gpd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geoseries/duplicated_geometry.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Literal

import geopandas as gpd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geoseries/filter_geometry.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import get_args
from typing import Literal
from typing import TYPE_CHECKING
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geoseries/geobuffer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from warnings import catch_warnings
from warnings import simplefilter

Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geoseries/geodistance.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from warnings import warn

import geopandas as gpd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geoseries/geodistance_matrix.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

import geopandas as gpd
import numpy as np
import pandas as pd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geoseries/reverse_geocode.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable
from typing import TYPE_CHECKING

Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geoseries/select_geom_type.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Literal

import geopandas as gpd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geoseries/toposimplify.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Literal

import geopandas as gpd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geoseries/voronoi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import TYPE_CHECKING

import geopandas as gpd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/geoseries/xy.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable

import geopandas as gpd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/index/is_h3.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from functools import partial

import pandas as pd
Expand Down
2 changes: 1 addition & 1 deletion dtoolkit/geoaccessor/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def register_geoseries_method(name: str = None):
--------
In your library code::

from __future__ import annotations


import geopandas as gpd
import pandas as pd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/series/from_wkb.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import TYPE_CHECKING

import geopandas as gpd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/series/from_wkt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import TYPE_CHECKING

import geopandas as gpd
Expand Down
2 changes: 0 additions & 2 deletions dtoolkit/geoaccessor/series/geocode.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Hashable
from typing import TYPE_CHECKING

Expand Down
Loading