You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue was identified in #2689 when we realized that mypy is inferring Litestar.template_engine as Any due to AppConfig.template_config being annotated as TemplateConfig (without generic arg) instead of TemplateConfig[TemplateEngineProtocol].
This issue was identified in #2689 when we realized that mypy is inferring
Litestar.template_engine
asAny
due toAppConfig.template_config
being annotated asTemplateConfig
(without generic arg) instead ofTemplateConfig[TemplateEngineProtocol]
.AppConfig.template_config
is annotated here:litestar/litestar/config/app.py
Line 199 in 38f3b19
And assigned to the app instance here:
litestar/litestar/app.py
Line 412 in 38f3b19
I really think we should work toward changing
litestar/pyproject.toml
Line 225 in 38f3b19
true
so these types of errors cannot occur.Originally posted by @peterschutt in #2689 (comment)
Note
While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh Litestar dashboard
The text was updated successfully, but these errors were encountered: