tests/functional/n/non_ascii_name_class/non_ascii_name_class_constant.py
raw| 1 | """non ASCII name in global class variable/class constant""" |
| 2 | |
| 3 | |
| 4 | class OkayIsh: |
| 5 | """Class docstring""" |
| 6 | ŁOOPBACK = "invalid" # [non-ascii-name] |
| 7 | |
| 8 | |
| 9 | def more_public(self): |
| 10 | """yet another public method""" |
| 11 | print(self) |
| 12 | |
| 13 | def public(self): |
| 14 | """something public""" |
| 15 | print(self) |
| 16 | |
| 17 | |
| 18 | |
| 19 | def main(): |
| 20 | """Main func""" |
| 21 | # Usage should not raise a second error |
| 22 | foobar = OkayIsh.ŁOOPBACK |
| 23 | print(foobar) |