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

Use 'callable' instead of typechecking for runtime calls ctx/env injection #1108

Merged
merged 1 commit into from
Nov 20, 2019

Conversation

captainmalloc
Copy link
Contributor

When jinja2 is used from Cython-compiled code, Functions and Methods are not types.FunctionType or types.MethodType anymore. Instead they are cython_function_or_method. The framework does not recognize decorated functions/methods and doesn't inject the needed parameters before the call execution.

Using callable is backward compatible with existing implementation and also compatible with Cython-compiled code.

@davidism davidism added this to the 2.11.0 milestone Nov 20, 2019
@davidism davidism merged commit c206cc9 into pallets:master Nov 20, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants