Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Feb 20, 2024
1 parent 5664c99 commit 48aa14c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions narwhals/pandas_like/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from typing import Any

from narwhals.pandas_like.dataframe import LazyFrame
from narwhals.pandas_like.namespace import Namespace # noqa: F401

if TYPE_CHECKING:
from narwhals.spec import LazyFrame as LazyFrameT
Expand Down
2 changes: 1 addition & 1 deletion narwhals/pandas_like/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def dataframe(self) -> Any:
def __dataframe_namespace__(
self,
) -> NamespaceT:
return narwhals.pandas_like.Namespace(
return narwhals.pandas_like.namespace.Namespace(
api_version=self.api_version,
implementation=self._implementation, # type: ignore[attr-defined]
)
Expand Down
4 changes: 0 additions & 4 deletions narwhals/pandas_like/expr.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import annotations

from typing import TYPE_CHECKING
from typing import Any
from typing import Callable

Expand All @@ -13,9 +12,6 @@
from narwhals.spec import Series as SeriesT
from narwhals.utils import register_expression_call

if TYPE_CHECKING:
from narwhals.pandas_like.namespace import Namespace as NamespaceT


class Expr(ExprT):
def __init__( # noqa: PLR0913
Expand Down

0 comments on commit 48aa14c

Please sign in to comment.