-
Notifications
You must be signed in to change notification settings - Fork 778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#[classattr]
functions should be able to take Python
arguments
#2383
Comments
@davidhewitt i'd really like to implement this |
@mdaj06 please do! Do you need any tips to get started? |
@davidhewitt i'll look into it and if I get blocked I'll reach out,if that's okay? |
Don't worry, we will try to help if you get stuck. |
thanks!! @birkenfeld |
i ran a few circles, trying to find out where to start. Could you point out the file i can start from? |
Sure thing. The call to the pyo3/pyo3-macros-backend/src/pymethod.rs Line 366 in 9dfeaa3
You will want to conditionally add pyo3/pyo3-macros-backend/src/pymethod.rs Lines 489 to 500 in 9dfeaa3
Let me know if you need more detail than that :) |
Try to compile the following:
I expected this to compile, but instead the compiler emits:
I think it'd be nice to change
#[classattr]
to allowPython
argument (like#[getter]
, for example).The text was updated successfully, but these errors were encountered: