0 votes
in Programming by (580 points)

Hy, I'm new in python

actually, I want to know how to make dynamic type of function in python like typescript:

this is example that I mean

function useRef<T>(val:T): T {
    return val

I hope someone could help me about this.

Please log in or register to answer this question.