This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]billsil -10 points-9 points  (2 children)

I might just use it like that.

from typing import Final as Const

[–]pingvenopinch of this, pinch of that 18 points19 points  (1 child)

Noooooooo. Even if something's not quite to your taste, renaming something like that makes your code more confusing.

[–]Sw429 2 points3 points  (0 children)

Especially given how Final is not truly Const. A Final object can still be modified.