Skip to content

Commit

Permalink
fix pylint issue (#12578)
Browse files Browse the repository at this point in the history
* fix pylint issue

* fix pylint issue

* update
  • Loading branch information
xiangyan99 authored Jul 16, 2020
1 parent 73bdd6a commit f7e3bb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class CustomAnalyzer(LexicalAnalyzer):
_validation = {
'odata_type': {'required': True},
'name': {'required': True},
'tokenizer': {'required': True},
'tokenizer_name': {'required': True},
}

_attribute_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def prep_if_none_match(etag, match_condition):
def pack_custom_analyzer(custom_analyzer):
# type: (CustomAnalyzer) -> _CustomAnalyzer
return _CustomAnalyzer(
name=custom_analyzer.name,
odata_type=custom_analyzer.odata_type,
tokenizer=custom_analyzer.tokenizer_name,
token_filters=custom_analyzer.token_filters,
Expand All @@ -87,7 +88,8 @@ def pack_custom_analyzer(custom_analyzer):

def unpack_custom_analyzer(custom_analyzer):
# type: (_CustomAnalyzer) -> CustomAnalyzer
return _CustomAnalyzer(
return CustomAnalyzer(
name=custom_analyzer.name,
odata_type=custom_analyzer.odata_type,
tokenizer_name=custom_analyzer.tokenizer,
token_filters=custom_analyzer.token_filters,
Expand Down

0 comments on commit f7e3bb6

Please sign in to comment.