Closed as not planned
Description
Feature or enhancement
Proposal:
The idea is to be able to pass variables as constants, mimicking c++ or rust behaviour such as. And have this be solely as part of the typings ecosystem. It's extremely helpful when reviewing code, or starting to use new codebases.
fn my_function(mut changeable: &String, unchangeable: &String) {}In python I suggest the following:
def my_function(changeable: str, unchangeable: Final[str])-> None:
arguments_that_changes += "world!"
return arguments_that_changes + argument_that_stays_constantHas this already been discussed elsewhere?
Opened issue in typing repo as well: #1557
Links to previous discussion of this feature:
No response

