Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Warning for Mako in docs build #2726

Open
JacobCoffee opened this issue Nov 20, 2023 · 0 comments
Open

Docs: Warning for Mako in docs build #2726

JacobCoffee opened this issue Nov 20, 2023 · 0 comments
Labels
Documentation 📚 This is related to documentation Templating This is related to our Templating feature

Comments

@JacobCoffee
Copy link
Member

JacobCoffee commented Nov 20, 2023

Summary

Docs building has a new warning on main:

/Users/jcoffee5/git/public/litestar-org/litestar/litestar/contrib/mako.py:docstring of litestar.contrib.mako.MakoTemplate.__init__:1: WARNING: py:class reference target not found: R

is caused by litestar.contrib.mako.MakoTemplate.__init__'s super inheriting and using R = TypeVar("R") somehow.

R = TypeVar("R")
ContextType = TypeVar("ContextType")
ContextType_co = TypeVar("ContextType_co", covariant=True)
TemplateType_co = TypeVar("TemplateType_co", bound=TemplateProtocol, covariant=True)
TemplateCallableType: TypeAlias = Callable[Concatenate[ContextType, P], R]

cc: @peterschutt related to latest changes?

@JacobCoffee JacobCoffee added the Documentation 📚 This is related to documentation label Nov 20, 2023
@JacobCoffee JacobCoffee added the Templating This is related to our Templating feature label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation 📚 This is related to documentation Templating This is related to our Templating feature
Projects
Status: Backlog
Development

No branches or pull requests

1 participant