mirror of
https://github.com/django-components/django-components.git
synced 2025-09-26 23:49:07 +00:00
refactor: allow to use pylance/pyright with the codebase (#1403)
This commit is contained in:
parent
340d58f391
commit
8ee616fad7
4 changed files with 28 additions and 6 deletions
|
@ -3609,8 +3609,8 @@ class Component(metaclass=ComponentMeta):
|
|||
html = None
|
||||
|
||||
# Remove component from caches
|
||||
del component_context_cache[render_id] # type: ignore[arg-type]
|
||||
unregister_provide_reference(render_id) # type: ignore[arg-type]
|
||||
del component_context_cache[render_id]
|
||||
unregister_provide_reference(render_id)
|
||||
|
||||
# Allow extensions to either:
|
||||
# - Override/modify the rendered HTML by returning new value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue