Skip to content

Commit

Permalink
🐛 Fix regression from PR #113 List instead of Set for alphabets property
Browse files Browse the repository at this point in the history
  • Loading branch information
Ousret committed Sep 27, 2021
1 parent a6f2412 commit 866e7a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charset_normalizer/models.py
Expand Up @@ -231,7 +231,7 @@ def alphabets(self) -> List[str]:
unicode_range(char) for char in str(self)
] # type: List[Optional[str]]
# filter and sort
self._unicode_ranges = sorted([r for r in detected_ranges if r]) # type: ignore
self._unicode_ranges = sorted({r for r in detected_ranges if r}) # type: ignore
return self._unicode_ranges

@property
Expand Down

0 comments on commit 866e7a3

Please sign in to comment.