mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
PY-14222 Don't allow recurive literal collection types
They used to cause infinite recursion in unpredictable places. Limiting recursion during type inference is a bit easier to understand that doing that during type checking.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class C:
|
||||
def f(self, x):
|
||||
self.foo = x
|
||||
self.foo = {'foo': self.foo}
|
||||
return self.foo['foo'] + 10
|
||||
Reference in New Issue
Block a user