Skip to content

Commit 7a7b946

Browse files
committed
Add polars as dev dependency, to avoid import-errors in examples
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent bed6720 commit 7a7b946

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ docs-lint = [
5858
]
5959
format = ["black == 23.3.0", "isort == 5.12.0"]
6060
nox = ["nox == 2023.4.22", "toml == 0.10.2"]
61+
examples = [ "polars == 0.18.0" ]
6162
pytest = [
6263
"pytest == 7.3.1",
6364
"pytest-cov == 4.1.0",
@@ -68,6 +69,7 @@ pytest = [
6869
# For checking docstring code examples
6970
"sybil == 5.0.2",
7071
"pylint == 2.17.4",
72+
"frequenz-sdk[examples]",
7173
]
7274
mypy = [
7375
"mypy == 1.3.0",

src/frequenz/sdk/timeseries/_moving_window.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ class MovingWindow:
8181
Example: Create a polars data frame from a `MovingWindow`
8282
8383
```python
84-
# pylint: disable=import-error
8584
import polars as pl
8685
from datetime import datetime, timedelta, timezone
8786

0 commit comments

Comments
 (0)