diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-09-21 15:54:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-21 15:54:11 -0700 |
commit | 66d33faabf1f19d4b192c38e927dfa727b0ed61f (patch) | |
tree | f657cee2e071c1394f993abf9f1b3a18504414c6 /numpy/typing/tests/test_typing.py | |
parent | a838abe68ce6bf8164c31cc35a2ac8d5485754ec (diff) | |
parent | 83960267dc097742cb67ef575504afa56f82b102 (diff) | |
download | numpy-66d33faabf1f19d4b192c38e927dfa727b0ed61f.tar.gz |
Merge pull request #19911 from DimitriPapadopoulos/codespell
DOC: Typos found by codespell
Diffstat (limited to 'numpy/typing/tests/test_typing.py')
-rw-r--r-- | numpy/typing/tests/test_typing.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/typing/tests/test_typing.py b/numpy/typing/tests/test_typing.py index 35558c880..81863c780 100644 --- a/numpy/typing/tests/test_typing.py +++ b/numpy/typing/tests/test_typing.py @@ -36,7 +36,7 @@ OUTPUT_MYPY: Dict[str, List[str]] = {} def _key_func(key: str) -> str: - """Split at the first occurance of the ``:`` character. + """Split at the first occurrence of the ``:`` character. Windows drive-letters (*e.g.* ``C:``) are ignored herein. """ @@ -246,8 +246,8 @@ def _parse_reveals(file: IO[str]) -> List[str]: comments_array = np.char.partition(string.split("\n"), sep=" # E: ")[:, 2] comments = "/n".join(comments_array) - # Only search for the `{*}` pattern within comments, - # otherwise there is the risk of accidently grabbing dictionaries and sets + # Only search for the `{*}` pattern within comments, otherwise + # there is the risk of accidentally grabbing dictionaries and sets key_set = set(re.findall(r"\{(.*?)\}", comments)) kwargs = { k: FORMAT_DICT.get(k, f"<UNRECOGNIZED FORMAT KEY {k!r}>") for k in key_set |