Skip to content

Commit

Permalink
Apply suggestions from code review: fix mypy types
Browse files Browse the repository at this point in the history
Co-authored-by: TAHRI Ahmed R. <Ousret@users.noreply.github.com>
  • Loading branch information
adbar and Ousret committed Sep 23, 2021
1 parent 2b0e00f commit 8f46e15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charset_normalizer/models.py
Expand Up @@ -226,9 +226,9 @@ def alphabets(self) -> List[str]:
if self._unicode_ranges is not None:
return self._unicode_ranges
# list detected ranges
detected_ranges = [unicode_range(char) for char in str(self)] # List[str]
detected_ranges = [unicode_range(char) for char in str(self)] # type: List[str]
# filter and sort
self._unicode_ranges = sorted([r for r in detected_ranges if r]) # List[str]
self._unicode_ranges = sorted([r for r in detected_ranges if r])
return self._unicode_ranges

@property
Expand Down

0 comments on commit 8f46e15

Please sign in to comment.