aliases.py: micro fix (#5454)

It's after all merged features.

## 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:
Andy Kipp 2024-05-28 19:16:24 +02:00 committed by GitHub
parent 730fe45627
commit bc8a243f2b
Failed to generate hash of commit

View file

@ -169,6 +169,7 @@ class Aliases(cabc.MutableMapping):
# only once.
if (
isinstance(value, cabc.Iterable)
and hasattr(value, 'len')
and len(value) > 1
and (isinstance(mod := self._raw.get(str(value[0])), SpecModifierAlias))
):