Skip to content

Commit b9ada64

Browse files
aquemyazory-ydata
andauthored
feat: support for Python 3.11 (#1273)
* feat: support for Python 3.11 * fix: type the exception, remove useless import * [skip ci] Code formatting --------- Co-authored-by: Azory YData Bot <azory@ydata.ai>
1 parent 468b47d commit b9ada64

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ jobs:
4444
python-version: "3.10"
4545
pandas: "pandas>1.1"
4646
numpy: "numpy"
47+
- os: ubuntu-latest
48+
python-version: "3.11"
49+
pandas: "pandas>1.1"
50+
numpy: "numpy"
4751

4852
steps:
4953
- uses: actions/checkout@v3

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
url="https://github.com/ydataai/ydata-profiling",
3030
license="MIT",
3131
description="Generate profile report for pandas DataFrame",
32-
python_requires=">=3.7, <3.11",
32+
python_requires=">=3.7, <3.12",
3333
install_requires=requirements,
3434
extras_require={
3535
"notebook": [

src/ydata_profiling/model/correlations.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
from multimethod import multimethod
88

99
from ydata_profiling.config import Settings
10-
from ydata_profiling.utils.compat import pandas_version_info
1110

12-
if pandas_version_info() >= (1, 5):
13-
from pandas.errors import DataError
14-
else:
11+
try:
1512
from pandas.core.base import DataError
13+
except ImportError:
14+
from pandas.errors import DataError
1615

1716

1817
class Correlation:

src/ydata_profiling/report/presentation/core/dropdown.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@
77

88
class Dropdown(ItemRenderer):
99
def __init__(
10-
self, name: str, id: str, items: list, item: Container, anchor_id: str, classes: list, is_row: bool, **kwargs
10+
self,
11+
name: str,
12+
id: str,
13+
items: list,
14+
item: Container,
15+
anchor_id: str,
16+
classes: list,
17+
is_row: bool,
18+
**kwargs
1119
):
1220
super().__init__(
1321
"dropdown",

0 commit comments

Comments
 (0)