File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 11from .mewnala import *
22
3+ # re-export the native submodules as submodules of this module, if they exist
4+ # this allows users to import from `mewnala.math` and `mewnala.color`
5+ # if they exist, without needing to know about the internal structure of the native module
36import sys as _sys
47from . import mewnala as _native
58for _name in ("math" , "color" ):
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ fn to_srgba(color: &Color) -> Srgba {
4444
4545#[ pymethods]
4646impl PyColor {
47+ // Varargs ctor for positional calls like color(255, 0, 0). ColorLike handles single-value extraction.
4748 #[ new]
4849 #[ pyo3( signature = ( * args) ) ]
4950 pub fn py_new ( args : & Bound < ' _ , PyTuple > ) -> PyResult < Self > {
You can’t perform that action at this time.
0 commit comments