You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pythonx.compose.ui.graphics.Color is not callable: KotlinObject hides the binder's callable module #88
Found by python-multiplatform #26 (the notebook E2E): pythonx.compose.ui.graphics.Color(0xFFFFFFFF) fails with "'KotlinObject' object is not callable", which breaks notebook cells 15, 19, 20, 22, 23, 25, 29, 30, 35, 36, 38 and 40. The binder serves androidx.compose.ui.graphics.Color as a callable module (an object whose name is also a function in its package, python-multiplatform #78), but this package wraps every Kotlin object module in KotlinObject, which has no call. Done when a Kotlin object that is also a function is callable through pythonx (calling the binder's function), stays a namespace for its constants (Color.Red), a plain Kotlin object stays non-callable, and a test with the binder covers it, including from an installed wheel. The Int/Long overload ambiguity of Color itself is python-multiplatform #146.
Activity
b-re-w commentedon Oct 3, 2026
Landed in develop via #89