Skip to content

Commit

Permalink
build: adding support python 3.11 and 3.12.
Browse files Browse the repository at this point in the history
  • Loading branch information
awais786 committed Feb 21, 2024
1 parent d845042 commit e318200
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion search/elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def search(self,
exclude_ids=None,
use_field_match=False,
log_search_params=False,
**kwargs): # pylint: disable=arguments-differ, unused-argument
**kwargs):
"""
Implements call to search the index for the desired content.
Expand Down
2 changes: 1 addition & 1 deletion search/filter_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SearchFilterGenerator:

# disabling pylint violations because overriders will want to use these
# pylint: disable=unused-argument, no-self-use
def filter_dictionary(self, **kwargs): # pylint: disable=unused-argument
def filter_dictionary(self, **kwargs):
""" base implementation which filters via start_date """
return {"start_date": DateRange(None, datetime.utcnow())}

Expand Down
2 changes: 0 additions & 2 deletions search/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ class SearchInitializer:
Users of this search app will override this class and update setting for SEARCH_INITIALIZER
"""

# disabling pylint violations because overriders will want to use these
# pylint: disable=unused-argument, no-self-use
def initialize(self, **kwargs):
""" empty base implementation """

Expand Down
1 change: 0 additions & 1 deletion search/result_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def decorate_matches(match_in, match_word):
)
return match_in

# disabling pylint violations because overriders will want to use these
def should_remove(self, user): # pylint: disable=unused-argument, no-self-use
"""
Override this in a class in order to add in last-chance access checks to the search process
Expand Down
1 change: 0 additions & 1 deletion search/tests/test_engines.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python
# Some of the subclasses that get used as settings-overrides will yield this pylint
# error, but they do get used when included as part of the override_settings
# pylint: disable=too-few-public-methods
""" Tests for search functionality """

import json
Expand Down

0 comments on commit e318200

Please sign in to comment.