Fix the byteorder depending on the PyTables types.
(ptype: str, byteorder: str)
| 48 | |
| 49 | |
| 50 | def correct_byteorder(ptype: str, byteorder: str) -> str: |
| 51 | """Fix the byteorder depending on the PyTables types.""" |
| 52 | if ptype in ["string", "bool", "int8", "uint8", "object"]: |
| 53 | return "irrelevant" |
| 54 | else: |
| 55 | return byteorder |
| 56 | |
| 57 | |
| 58 | def is_idx(index: Any) -> bool: |
no outgoing calls
no test coverage detected