3 ms·
PEP 750 doesn't directly address this because it's straightforward to simply wrap template creation in a function (or a lambda, if that's your style): def
by davepeck 2y ago
PEP 750 doesn't directly address this because it's straightforward to simply wrap template creation in a function (or a lambda, if that's your style):
def my_template(name: str) -> Template:
return t"Hello, {name}"