Skip to content

Rename _implementation, _backend_version -> implementation, backend_version #3131

@dangotbanned

Description

@dangotbanned

I'd already started doing this for namespaces and was reminded of the inconsistency in (#3127 (comment))

import narwhals as nw

series = nw.Series.from_iterable("", [1, 2, 3], backend="pandas")
>>> series.implementation is series._compliant._implementation is series._compliant.str.implementation
True

I'm mainly focused on implementation, but backend_version is relevant to (#3127).

version might be worth considering as well, I'd already made that change in (#2572):

# NOTE: Unlike the version in `nw._utils`, here `.version` it is public
class StoresVersion(Protocol):
_version: Version
@property
def version(self) -> Version:
"""Narwhals API version (V1 or MAIN)."""
return self._version

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions