(o: Any)
| 23 | |
| 24 | # pyre-fixme[11]: Annotation `TreeSpec` is not defined as a type. |
| 25 | def _spec(o: Any) -> TreeSpec: |
| 26 | # pyre-fixme[16]: Module `pytree` has no attribute `tree_flatten`. |
| 27 | _, spec = tree_flatten(o) |
| 28 | return spec |
| 29 | |
| 30 | |
| 31 | # Constructs string representation of pytree spec of type specified by type_char (can be 'T' for tuple, 'L' for List) argument, that contains n children, each with single leaf. |
no outgoing calls
no test coverage detected