Skip to content

Conversation

tkosman
Copy link

@tkosman tkosman commented Jul 30, 2025

Let’s keep things fair.
If we're parsing 'yup' and 'yep' as bool type True.
Definitely 'nope' belongs to bool type False.

Example:

import os
import sanic

os.environ["SANIC_NOPE"] = "nope"

app = sanic.Sanic("Nope")

@app.route("/")
async def nope(request):
    return sanic.response.json({"NOPE IS": app.config.get("NOPE")}) # {NOPE IS: false}


if __name__ == "__main__":
    app.run()

@tkosman tkosman requested review from a team as code owners July 30, 2025 20:56
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

Successfully merging this pull request may close these issues.

1 participant