I have a function and I want the first positional argument of that only give the instances of a specific class , a code like this in other programming languages
from channels import Channel
def get_frame_link(Channel channel):
print(channel)
if coder use that function in this way the python most raise an error
get_frame_link(123)
get_frame_link("hello")
the truth way most be only this
channel=Channel()
get_frame_link(channel)
note: this is not duplicated question because I don't asked for how to check a variable type