tests/functional/n/non_ascii_name_class/non_ascii_name_class_attribute.py
raw| 1 | """Non ASCII name in class variable""" |
| 2 | |
| 3 | |
| 4 | class OkayIsh: |
| 5 | """Class docstring""" |
| 6 | |
| 7 | def public(self): |
| 8 | """Be public!""" |
| 9 | print(self) |
| 10 | |
| 11 | def __init__(self): |
| 12 | self.łoopback = "invalid" # [non-ascii-name] |
| 13 | |
| 14 | def foobar(self): |
| 15 | """do something""" |
| 16 | # Usage should not raise a second error |
| 17 | return self.łoopback |
| 18 | |
| 19 | def main(): |
| 20 | """main function""" |
| 21 | # Usage should not raise a second error |
| 22 | barrrr = OkayIsh() |
| 23 | barrrr.foobar() |
| 24 | test = barrrr.łoopback |
| 25 | print(test) |