Sure, it's valid python to do that. By that logic you could also pass an int. But the context of this post is that you're using a static type checker.
It's not valid from a typing perspective, but python will let you. If you want to disregard types though then none of this matters anyway and you won't get much benefit from these tools