We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce2ca10 commit 5a65becCopy full SHA for 5a65bec
pattern_library/monkey_utils.py
@@ -1,5 +1,7 @@
1
import logging
2
+from typing import Optional
3
4
+import django
5
from django.template.library import SimpleNode
6
7
from pattern_library.utils import (
@@ -12,11 +14,11 @@
12
14
UNSPECIFIED = object()
13
15
16
-def override_tag(register, name, default_html=None):
17
+def override_tag(
18
+ register: django.template.Library, name: str, default_html: Optional[str] = None
19
+):
20
"""
21
An utility that helps you override original tags for use in your pattern library.
-
- Accepts the register argument which should be an instance of django.template.Library.
22
23
24
original_tag = register.tags[name]
pattern_library/py.typed
0 commit comments