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

Explain AssertionError on the new @setupmethod 'shell_context_processor' behavior #4869

Closed
wants to merge 4 commits into from

Conversation

HLFH
Copy link

@HLFH HLFH commented Nov 16, 2022

This appcontext updated doc explain the new @setupmethod 'shell_context_processor' behavior and gives guidance to developers so they can start refactoring their code and define the Flask application object under a basic application factory create_app to avoid the AssertionError.

I think the updated doc page is still wrapped at 72 characters.
I don't think I need to an entry in CHANGES.rst or include .. versionchanged:: inline changelogs in relevant docstrings?

@HLFH HLFH changed the title Explain AssertionError on the new @setupmethod 'shell_context_process' behavior Explain AssertionError on the new @setupmethod 'shell_context_processor' behavior Nov 16, 2022
@davidism
Copy link
Member

I started to leave a review, but really this whole explanation is incorrect. You've misunderstood when and why modifying an app after setup is an error.

@davidism davidism closed this Nov 16, 2022
@pallets pallets deleted a comment from HLFH Nov 16, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 10, 2023
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.

docs should explain the @setupmethod behavior
2 participants