Is there a way to mark variables as constant / unchangeable in pyright?

Viewed 54

I tried googling, but I haven't come across a way to use a type annotation to mark a variable as constant in pyright. I think the type Constant is more like scalar constant, rather than the C/C++ keyword const.

Any thoughts appreciated.

Thanks.

0 Answers
Related