Skip to content

Commit 235ae02

Browse files
author
David Robertson
committed
Fix false-positives appearing when cache is in use
1 parent 5139181 commit 235ae02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mypy_zope/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ def _apply_interface(self, impl: TypeInfo, iface: TypeInfo) -> None:
695695
# there is a decorator for the class that will create a "type promotion",
696696
# but ensure this only gets applied a single time per interface.
697697
promote = Instance(iface, [])
698-
if not any(ti._promote == promote for ti in impl.mro):
698+
if not any(promote in ti._promote for ti in impl.mro):
699699
faketi = TypeInfo(SymbolTable(), iface.defn, iface.module_name)
700700
faketi._promote = [promote]
701701
impl.mro.append(faketi)

0 commit comments

Comments
 (0)