Couldn't seem to find a definitive answer. I want to do a type hint for a function and the type being some custom class that I have defined, called it CustomClass()
.
And then let's say in some function, call it FuncA(arg)
, I have one argument named arg
. Would the correct way to type hint FuncA
be:
def FuncA(arg: CustomClass):
Or would it be:
def FuncA(Arg:Type[CustomClass]):