Dec-13-2022, 07:28 PM
When I pass an object in as a parameter to a function, is there a way to specify in the function declaration what type the parameter is so that I can see its properties as I type. I have a class called Browser
br=Browser() br.<argument and type display here> print(other_function(br))
other_function(brw): x=brw.<here I get nothing> return TrueIs there any way to do a sort of early binding. What I have been doing is to over-shadow the parameter with a local instance of its class, then when I am done coding the function, I delete it