Commit 083e185
read out class.__dict__ to avoid concurrent modification (#310)
Fix `RuntimeError: dictionary changed size during iteration` in
`ParserDispatchMixin._iter_class_members` when handling a class whose
`__dict__` is updated by `getattr`. Fix is to read out `__dict__` keys
into a list then iter. Resolves #309.
---------
Signed-off-by: htruscott <harrison@harriscott.net>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 89b3b9c commit 083e185
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
0 commit comments