fix some typos to ensure pre-commit.ci fixes main

This commit is contained in:
Anthony Sottile 2022-06-22 08:29:02 -07:00
parent fab696dcd1
commit 74691346bd
2 changed files with 2 additions and 2 deletions

View File

@ -227,7 +227,7 @@ class Argument:
_typ_map = {"int": int, "string": str, "float": float, "complex": complex}
def __init__(self, *names: str, **attrs: Any) -> None:
"""Store parms in private vars for use in add_argument."""
"""Store params in private vars for use in add_argument."""
self._attrs = attrs
self._short_opts: List[str] = []
self._long_opts: List[str] = []

View File

@ -134,7 +134,7 @@ class ApproxBase:
def _recursive_sequence_map(f, x):
"""Recursively map a function over a sequence of arbitary depth"""
"""Recursively map a function over a sequence of arbitrary depth"""
if isinstance(x, (list, tuple)):
seq_type = type(x)
return seq_type(_recursive_sequence_map(f, xi) for xi in x)