| 1 | # python >= 3.11 |
| 2 | class Foo: |
| 3 | bar = 1 |
| 4 | |
| 5 | #? 10 int() |
| 6 | f'{Foo.bar}' |
| 7 | #? 10 ['bar'] |
| 8 | f'{Foo.bar}' |
| 9 | #? 10 int() |
| 10 | Fr'{Foo.bar' |
| 11 | #? 10 ['bar'] |
| 12 | Fr'{Foo.bar' |
| 13 | #? int() |
| 14 | Fr'{Foo.bar |
| 15 | #? ['bar'] |
| 16 | Fr'{Foo.bar |
| 17 | #? ['Exception', 'ExceptionGroup'] |
| 18 | F"{Excepti |
| 19 | |
| 20 | #? 8 Foo |
| 21 | Fr'a{Foo.bar' |
| 22 | #? str() |
| 23 | Fr'sasdf' |
| 24 | |
| 25 | #? 7 str() |
| 26 | Fr'''sasdf''' + '' |
| 27 | |
| 28 | #? ['upper'] |
| 29 | f'xyz'.uppe |
| 30 | |
| 31 | |
| 32 | #? 3 [] |
| 33 | f'f' |
| 34 | |
| 35 | # Github #1248 |
| 36 | #? int() |
| 37 | {"foo": 1}[f"foo"] |