Template class returning Any
type in constructor
#1708
pepelovesvim
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now the constructor returns a
Any
type.jinja/src/jinja2/environment.py
Line 1182 in 997f7f5
With the new addition of the
Self
type to thetyping
library, should this bedef __init__(self,...) -> typing.Self:
?Of course that's only for python 3.11, one would have to do
def __init__(self,...) -> typing_extensions.Self:
for python 3.10
Beta Was this translation helpful? Give feedback.
All reactions