🧵
🧵
In Python, you can use `auto` to do that for you!
`auto` will assign consecutive integers to enumeration members, which is super convenient.
For flag enums, it'll use consecutive powers of 2.
For string enums, it'll lowercase the member names!
That means there is either merged code or a release with pylock.toml support in:
1. Pip
2. Pip-audit
3. PDM
4. uv
github.com/astral-sh/uv...
That means there is either merged code or a release with pylock.toml support in:
1. Pip
2. Pip-audit
3. PDM
4. uv
github.com/astral-sh/uv...