fix some typos to ensure pre-commit.ci fixes main
This commit is contained in:
parent
fab696dcd1
commit
74691346bd
|
@ -227,7 +227,7 @@ class Argument:
|
||||||
_typ_map = {"int": int, "string": str, "float": float, "complex": complex}
|
_typ_map = {"int": int, "string": str, "float": float, "complex": complex}
|
||||||
|
|
||||||
def __init__(self, *names: str, **attrs: Any) -> None:
|
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._attrs = attrs
|
||||||
self._short_opts: List[str] = []
|
self._short_opts: List[str] = []
|
||||||
self._long_opts: List[str] = []
|
self._long_opts: List[str] = []
|
||||||
|
|
|
@ -134,7 +134,7 @@ class ApproxBase:
|
||||||
|
|
||||||
|
|
||||||
def _recursive_sequence_map(f, x):
|
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)):
|
if isinstance(x, (list, tuple)):
|
||||||
seq_type = type(x)
|
seq_type = type(x)
|
||||||
return seq_type(_recursive_sequence_map(f, xi) for xi in x)
|
return seq_type(_recursive_sequence_map(f, xi) for xi in x)
|
||||||
|
|
Loading…
Reference in New Issue