diff options
author | Anthon van der Neut <anthon@mnt.org> | 2023-05-05 20:08:37 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2023-05-05 20:08:37 +0200 |
commit | a6a96c99a78cdc34e291af8d7d2d17fd1bf42a42 (patch) | |
tree | 99c4e94587427d628bb5679a8ee85b8c2487bf01 /events.py | |
parent | 199f4f52fa9c1700de3b4d3709de81c34b7402a4 (diff) | |
download | ruamel.yaml-a6a96c99a78cdc34e291af8d7d2d17fd1bf42a42.tar.gz |
fixes issue: 458,454, stackoverflow reports
Diffstat (limited to 'events.py')
-rw-r--r-- | events.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -31,7 +31,7 @@ class Event: # if you use repr(getattr(self, 'value')) then flake8 complains about # abuse of getattr with a constant. When you change to self.value # then mypy throws an error - arguments.append(repr(self.value)) # type: ignore + arguments.append(repr(self.value)) for key in ['anchor', 'tag', 'implicit', 'flow_style', 'style']: v = getattr(self, key, None) if v is not None: |