File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -143,9 +143,6 @@ def as_template(
143143 pattern : Optional [str ] = None ,
144144 order : Optional [int ] = None ,
145145 ) -> AsyncIndexTemplate :
146- # TODO: should we allow pattern to be a top-level arg?
147- # or maybe have an IndexPattern that allows for it and have
148- # Document._index be that?
149146 return AsyncIndexTemplate (
150147 template_name , pattern or self ._name , index = self , order = order
151148 )
@@ -156,9 +153,6 @@ def as_composable_template(
156153 pattern : Optional [str ] = None ,
157154 priority : Optional [int ] = None ,
158155 ) -> AsyncComposableIndexTemplate :
159- # TODO: should we allow pattern to be a top-level arg?
160- # or maybe have an IndexPattern that allows for it and have
161- # Document._index be that?
162156 return AsyncComposableIndexTemplate (
163157 template_name , pattern or self ._name , index = self , priority = priority
164158 )
Original file line number Diff line number Diff line change @@ -133,9 +133,6 @@ def as_template(
133133 pattern : Optional [str ] = None ,
134134 order : Optional [int ] = None ,
135135 ) -> IndexTemplate :
136- # TODO: should we allow pattern to be a top-level arg?
137- # or maybe have an IndexPattern that allows for it and have
138- # Document._index be that?
139136 return IndexTemplate (
140137 template_name , pattern or self ._name , index = self , order = order
141138 )
@@ -146,9 +143,6 @@ def as_composable_template(
146143 pattern : Optional [str ] = None ,
147144 priority : Optional [int ] = None ,
148145 ) -> ComposableIndexTemplate :
149- # TODO: should we allow pattern to be a top-level arg?
150- # or maybe have an IndexPattern that allows for it and have
151- # Document._index be that?
152146 return ComposableIndexTemplate (
153147 template_name , pattern or self ._name , index = self , priority = priority
154148 )
You can’t perform that action at this time.
0 commit comments