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(
143
143
pattern : Optional [str ] = None ,
144
144
order : Optional [int ] = None ,
145
145
) -> 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?
149
146
return AsyncIndexTemplate (
150
147
template_name , pattern or self ._name , index = self , order = order
151
148
)
@@ -156,9 +153,6 @@ def as_composable_template(
156
153
pattern : Optional [str ] = None ,
157
154
priority : Optional [int ] = None ,
158
155
) -> 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?
162
156
return AsyncComposableIndexTemplate (
163
157
template_name , pattern or self ._name , index = self , priority = priority
164
158
)
Original file line number Diff line number Diff line change @@ -133,9 +133,6 @@ def as_template(
133
133
pattern : Optional [str ] = None ,
134
134
order : Optional [int ] = None ,
135
135
) -> 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?
139
136
return IndexTemplate (
140
137
template_name , pattern or self ._name , index = self , order = order
141
138
)
@@ -146,9 +143,6 @@ def as_composable_template(
146
143
pattern : Optional [str ] = None ,
147
144
priority : Optional [int ] = None ,
148
145
) -> 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?
152
146
return ComposableIndexTemplate (
153
147
template_name , pattern or self ._name , index = self , priority = priority
154
148
)
You can’t perform that action at this time.
0 commit comments