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:
Andy Kipp 2024-05-28 22:47:08 +02:00 committed by GitHub
parent bc8a243f2b
commit 1f960b2a8d
Failed to generate hash of commit

View file

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