Returns True if a _sunder_ name, False otherwise.
(name)
| 55 | ) |
| 56 | |
| 57 | def _is_sunder(name): |
| 58 | """ |
| 59 | Returns True if a _sunder_ name, False otherwise. |
| 60 | """ |
| 61 | return ( |
| 62 | len(name) > 2 and |
| 63 | name[0] == name[-1] == '_' and |
| 64 | name[1] != '_' and |
| 65 | name[-2] != '_' |
| 66 | ) |
| 67 | |
| 68 | def _is_internal_class(cls_name, obj): |
| 69 | # do not use `re` as `re` imports `enum` |
no test coverage detected