Commit 443a9c1
typecheck.py: use isinstance for typing.Reversible
The hasattr(__reversed__) check was a workaround for Python 3.5
where typing.Reversible was a protocol that rejected isinstance.
Works fine on 3.10+.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 92ad920 commit 443a9c1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments