summaryrefslogtreecommitdiff
path: root/numpy/typing/tests/test_typing.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-09-21 15:54:11 -0700
committerGitHub <noreply@github.com>2021-09-21 15:54:11 -0700
commit66d33faabf1f19d4b192c38e927dfa727b0ed61f (patch)
treef657cee2e071c1394f993abf9f1b3a18504414c6 /numpy/typing/tests/test_typing.py
parenta838abe68ce6bf8164c31cc35a2ac8d5485754ec (diff)
parent83960267dc097742cb67ef575504afa56f82b102 (diff)
downloadnumpy-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.py6
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