Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
elasticsearch
Commits
3bf81e57177a
Commit
a819cdc7
authored
Nov 23, 2021
by
Katia Saurfelt
Browse files
chore: make mypy happy
parent
e007bef1f883
Pipeline
#95538
passed with stages
in 3 minutes and 11 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
cubicweb_elasticsearch/testutils.py
View file @
3bf81e57
...
...
@@ -14,12 +14,12 @@ from cubicweb_elasticsearch.entities import IFullTextIndexSerializable
class
BlogEntryFTIAdapter
(
IFullTextIndexSerializable
):
__select__
=
IFullTextIndexSerializable
.
__select__
&
is_instance
(
"BlogEntry"
)
custom_indexable_attributes
=
(
"title"
,
"content"
)
custom_indexable_attributes
=
(
"title"
,
"content"
)
# type: ignore
class
BlogFTIAdapter
(
IFullTextIndexSerializable
):
__select__
=
IFullTextIndexSerializable
.
__select__
&
is_instance
(
"Blog"
)
custom_indexable_attributes
=
(
"title"
,)
custom_indexable_attributes
=
(
"title"
,)
# type: ignore
class
PersonFTIAdapter
(
IFullTextIndexSerializable
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment