mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
aliases.py: micro fix 2 (#5456)
## For community ⬇️ **Please click the 👍 reaction instead of leaving a `+1` or 👍 comment** Co-authored-by: a <1@1.1>
This commit is contained in:
parent
bc8a243f2b
commit
1f960b2a8d
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ class Aliases(cabc.MutableMapping):
|
||||||
# only once.
|
# only once.
|
||||||
if (
|
if (
|
||||||
isinstance(value, cabc.Iterable)
|
isinstance(value, cabc.Iterable)
|
||||||
and hasattr(value, 'len')
|
and hasattr(value, '__len__')
|
||||||
and len(value) > 1
|
and len(value) > 1
|
||||||
and (isinstance(mod := self._raw.get(str(value[0])), SpecModifierAlias))
|
and (isinstance(mod := self._raw.get(str(value[0])), SpecModifierAlias))
|
||||||
):
|
):
|
||||||
|
|
Loading…
Add table
Reference in a new issue