Skip to content

Snake_case methods on proxies the binder returns #20

Closed

Description

@b-re-w

What

m.fill_max_width(), m.z_index(1.5), m.padding_from_baseline(16) on a Modifier (or any receiver proxy) that Kotlin handed back.

Why

These are attributes of the binder's own proxy class, which resolves Kotlin names only. The module-level rule (#8) cannot reach them. python-multiplatform #17 adds python_multiplatform.binding.add_member_resolver(fn), which caches resolved aliases in the resolver registry rather than on the binder's class, so dir() and code that uses androidx.* directly still see Kotlin names only.

Done when

pythonx registers its naming rule as a member resolver, and the 4 tests in tests/test_chain.py that skip with "python-multiplatform #17" run and pass. A test fails with the resolver unregistered.

Activity

  1. b-re-w commented on Oct 2, 2026

    @b-re-w
    MemberAuthor

    Landed in develop via #24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions