(self, other)
| 113 | """ |
| 114 | class _DeprecatedMeta(type): |
| 115 | def __instancecheck__(self, other): |
| 116 | warnings.warn( |
| 117 | _DEPR_MSG.format(old_name, next_version, new_class.__name__), |
| 118 | FutureWarning, |
| 119 | stacklevel=2 |
| 120 | ) |
| 121 | return isinstance(other, new_class) |
| 122 | |
| 123 | return _DeprecatedMeta(old_name, (new_class,), {}) |
| 124 |