Skip to content
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

[BUG] compile-time error when not passing optional kwarg #4747

Open
jbrockmendel opened this issue Apr 18, 2022 · 0 comments
Open

[BUG] compile-time error when not passing optional kwarg #4747

jbrockmendel opened this issue Apr 18, 2022 · 0 comments

Comments

@jbrockmendel
Copy link
Contributor

cdef int64_t _tz_localize_using_tzinfo_api(
    int64_t val, tzinfo tz, bint to_utc=True, bint* fold=NULL, NPY_DATETIMEUNIT reso=NPY_FR_ns
) except? -1:
[...]

def whatever(...):
    local_val = utc_val + _tz_localize_using_tzinfo_api(utc_val, tz, to_utc=False, reso=reso)  # <-raises

Calling _tz_localize_using_tzinfo_api raises at compile time with C function call is missing argument 'fold'. This only started happening when the reso kwarg was added so im guessing it has to do with pointer arguments that aren't at the end of the signature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant