Skip to content

Field.stop_words is overwritten and is no longer a set #457

Closed
@artemisart

Description

@artemisart

if stop_words is not None:
try:
self.stop_words = set(stop_words)
except TypeError:
raise ValueError("Stop words must be convertible to a set")
else:
self.stop_words = stop_words
self.stop_words = stop_words

I think this is an error and self.stop_words should not be overwritten after the condition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions