Skip to content

panic: AST indices should never change within the same revision with missing-override-decorator #3654

@correctmost

Description

@correctmost

Summary

ty crashes when checking this code:

ty.toml

[rules]
missing-override-decorator = 'error'

c.py

class C:
    @property
    def p(self):
        pass

d.py

from c import C

class D(C):
    @C.p.setter
    def p(self, x):
        pass
error[panic]: Panicked at crates/ty_python_semantic/src/types/function.rs:397:18 when checking `/home/user/d.py`: `AST indices should never change within the same revision`

https://play.ty.dev/7f3886cf-f236-4d5f-99d9-bce6d496860b
--> The playground reports the crash when I modify ty.toml and then switch back to d.py

Version

ty 0.0.43

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfatala fatal error (panic or crash)

Type

No fields configured for Bug.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions