refactor: allow to use pylance/pyright with the codebase (#1403)

This commit is contained in:
Juro Oravec 2025-09-23 10:32:05 +02:00 committed by GitHub
parent 340d58f391
commit 8ee616fad7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 28 additions and 6 deletions

View file

@ -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