(encoded: str)
| 36 | |
| 37 | @staticmethod |
| 38 | def decode(encoded: str) -> uuid.UUID: |
| 39 | |
| 40 | num = 0 |
| 41 | for char in encoded: |
| 42 | num = num * UUIDEncoder.BASE62_LEN + UUIDEncoder.BASE62_ALPHABET.index(char) |
| 43 | |
| 44 | return uuid.UUID(int=num) |
| 45 | |
| 46 | @staticmethod |
| 47 | def decode_to_str(encoded: str) -> str: |
no outgoing calls
no test coverage detected