Skip to content

Commit

Permalink
Bump version to 0.7.14
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Apr 25, 2024
1 parent d3ed01d commit 5d1ce25
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ Then, if you start the Python REPL and see the following:
```python
>>> import narwhals
>>> narwhals
'0.7.12'
'0.7.14'
```
then installation worked correctly!
2 changes: 1 addition & 1 deletion narwhals/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from narwhals.translate import from_native
from narwhals.translate import to_native

__version__ = "0.7.12"
__version__ = "0.7.14"

__all__ = [
"concat",
Expand Down
13 changes: 10 additions & 3 deletions narwhals/translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@
from narwhals.series import Series


def to_native(narwhals_object: LazyFrame | DataFrame | Series) -> Any:
def to_native(
narwhals_object: LazyFrame | DataFrame | Series, *, strict: bool = True
) -> Any:
"""
Convert Narwhals object to native one.
Arguments:
narwhals_object: Narwhals object.
strict: whether to raise on non-Narwhals input.
Returns:
Object of class that user started with.
Expand All @@ -42,8 +45,12 @@ def to_native(narwhals_object: LazyFrame | DataFrame | Series) -> Any:
else narwhals_object._series._series
)

msg = f"Expected Narwhals object, got {type(narwhals_object)}." # pragma: no cover
raise TypeError(msg) # pragma: no cover
if strict: # pragma: no cover (todo)
msg = (
f"Expected Narwhals object, got {type(narwhals_object)}." # pragma: no cover
)
raise TypeError(msg) # pragma: no cover
return narwhals_object # pragma: no cover (todo)


@overload
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "narwhals"
version = "0.7.12"
version = "0.7.14"
authors = [
{ name="Marco Gorelli", email="[email protected]" },
]
Expand Down

0 comments on commit 5d1ce25

Please sign in to comment.