Whether `seq` is an entry or nested structure
(seq: Any)
| 104 | |
| 105 | |
| 106 | def is_sequence(seq: Any) -> TypeGuard[typing.Sequence[Any] | dict[str, Any]]: |
| 107 | """ |
| 108 | Whether `seq` is an entry or nested structure |
| 109 | """ |
| 110 | if isinstance(seq, dict): |
| 111 | return True |
| 112 | return isinstance(seq, Sequence) and not isinstance(seq, str) |
| 113 | |
| 114 | |
| 115 | class UniqueIdMap(WeakKeyDictionary): |
no outgoing calls
no test coverage detected