Skip to content

Commit 6e2bd0c

Browse files
remove old comment
1 parent d177fa3 commit 6e2bd0c

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

elasticsearch_dsl/_async/index.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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
)

elasticsearch_dsl/_sync/index.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)