36
36
try :
37
37
# completely optional type hinting
38
38
# (Python 2 compatible using comments,
39
- # see: https://mypy.readthedocs.io/en/latest/python2.html)
39
+ # see: https://mypy.readthedocs.io/en/latest/python2.html)
40
40
# This is very helpful in typing-aware IDE like PyCharm.
41
41
from typing import Any , Callable , Dict , Iterable , Iterator , List , Optional , Set , Tuple
42
42
except ImportError :
@@ -95,7 +95,8 @@ class UnicodeFiles(object):
95
95
"Cc" : ["C" ], "Cf" : ["C" ], "Cs" : ["C" ], "Co" : ["C" ], "Cn" : ["C" ],
96
96
}
97
97
98
- # this is the surrogate codepoints range (both ends inclusive)
98
+ # This is the (inclusive) range of surrogate codepoints.
99
+ # These are not valid Rust characters.
99
100
# - they are not valid Rust characters
100
101
SURROGATE_CODEPOINTS_RANGE = (0xd800 , 0xdfff )
101
102
@@ -122,7 +123,7 @@ def fetch_files(version=None):
122
123
"""
123
124
Fetch all the Unicode files from unicode.org.
124
125
125
- This will use cached files (stored in FETCH_DIR) if they exist,
126
+ This will use cached files (stored in ` FETCH_DIR` ) if they exist,
126
127
creating them if they don't. In any case, the Unicode version
127
128
is always returned.
128
129
@@ -797,7 +798,7 @@ def parse_args():
797
798
parser = argparse .ArgumentParser (description = __doc__ )
798
799
parser .add_argument ("-v" , "--version" , default = None , type = str ,
799
800
help = "Unicode version to use (if not specified,"
800
- " defaults to latest available final release)." )
801
+ " defaults to latest release)." )
801
802
802
803
return parser .parse_args ()
803
804
0 commit comments