Skip to content

Commit 8175e35

Browse files
aorightsh4nks
authored andcommitted
docs: fix grammar and typos in jinja2ext and utils
Signed-off-by: aoright <102943475+aoright@users.noreply.github.com>
1 parent aa9eba6 commit 8175e35

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/flask_caching/jinja2ext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
...
2222
{% endcache %}
2323
24-
Set timeout to ``del`` to delete cached value::
24+
Set the timeout to ``del`` to delete the cached value::
2525
2626
{% cache 'del' key1 %}
2727
...
@@ -65,7 +65,7 @@ def parse(self, parser: Parser) -> nodes.Node:
6565

6666
#: Parse fragment name
6767
#: Grab the fragment name if it exists
68-
#: otherwise, default to the old method of using the templates
68+
#: otherwise, default to the old method of using the template's
6969
#: lineno to maintain backwards compatibility.
7070
if parser.stream.skip_if("comma"):
7171
args.append(parser.parse_expression())

src/flask_caching/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_id(obj: Any) -> str:
8787
def function_namespace(
8888
f: Callable[..., Any], args: Any = None
8989
) -> tuple[str, str | None]:
90-
"""Attempts to returns unique namespace for function"""
90+
"""Attempts to return a unique namespace for the function."""
9191
m_args = get_arg_names(f)
9292

9393
instance_token = None

0 commit comments

Comments
 (0)