Skip to content

Commit 54bee3e

Browse files
committed
Undo change to Self for backwards compatibility
1 parent 85903fd commit 54bee3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pyoframe/_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import warnings
66
from abc import abstractmethod
77
from collections.abc import Iterable, Mapping, Sequence
8-
from typing import TYPE_CHECKING, Literal, Self, Union, overload
8+
from typing import TYPE_CHECKING, Literal, Union, overload
99

1010
import pandas as pd
1111
import polars as pl
@@ -693,7 +693,7 @@ def __init__(self, data: pl.DataFrame, name: str | None = None):
693693
super().__init__(data, name=name)
694694

695695
@classmethod
696-
def constant(cls, constant: int | float) -> Self:
696+
def constant(cls, constant: int | float) -> Expression:
697697
"""Creates a new expression equal to the given constant.
698698
699699
Examples:

0 commit comments

Comments
 (0)