Created
August 8, 2026 17:47
-
-
Save AlexWaygood/5288dc24656c31ef9bd432c07bf9f852 to your computer and use it in GitHub Desktop.
Minimal reproducer for order-dependent ty unsound-return-statement diagnostics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Base: | |
| values = ["a"] | |
| class Parent(Base): | |
| def __init__(self): | |
| if self.values: | |
| self.values = [*self.values] | |
| def get_values(self) -> list[str]: | |
| return self.values |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from base import Parent | |
| class Child(Parent): | |
| def __init__(self): | |
| self.values = self.values + ["b"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment