Returns 1 if `o` is considered a mapping view for the purposes of Flatten(). Returns 0 otherwise. Returns -1 if an error occurred.
| 225 | // Returns 0 otherwise. |
| 226 | // Returns -1 if an error occurred. |
| 227 | int IsMappingViewHelper(PyObject* o) { |
| 228 | static auto* const check_cache = new CachedTypeCheck([](PyObject* to_check) { |
| 229 | return IsInstanceOfRegisteredType(to_check, "MappingView"); |
| 230 | }); |
| 231 | return check_cache->CachedLookup(o); |
| 232 | } |
| 233 | |
| 234 | // Returns 1 if `o` is an instance of attrs-decorated class. |
| 235 | // Returns 0 otherwise. |
no test coverage detected