$ errors.fyi/mypy/union-attr 128 namespaces · 4,025 codes
mypy · mypy/union-attr
union-attr

Attribute Not Defined in Union Member

An attribute is accessed on a union type but one or more union members do not define it. Narrow the type with isinstance() or other type guards before accessing the attribute.

References

In this namespace

» community-maintained · contribute on GitHub npm i -g errors-fyi && errorfyi ENOENT