From 22f8cf1cad16df9699e6f428d3bc428cdd641a12 Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Wed, 2 Nov 2022 21:37:53 -0700 Subject: [PATCH] [mypyc] fix for typeshed changes to Collection --- mypyc/irbuild/classdef.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mypyc/irbuild/classdef.py b/mypyc/irbuild/classdef.py index 2c412253ec71..1217966518d4 100644 --- a/mypyc/irbuild/classdef.py +++ b/mypyc/irbuild/classdef.py @@ -451,6 +451,7 @@ def populate_non_ext_bases(builder: IRBuilder, cdef: ClassDef) -> Value: "typing.Collection", "typing.Reversible", "typing.Container", + "typing.Sized", ): # HAX: Synthesized base classes added by mypy don't exist at runtime, so skip them. # This could break if they were added explicitly, though...