StorageType

class StorageType(*values)[source]

Enum for the storage type of a file, determining whether the file is read/written in text or binary mode.

Using str as a mixin ensures backward compatibility: StorageType.TEXT == "TEXT" evaluates to True.