Absent any isinstance() checks, the only properties that you can rely on regarding Union[Signature, BaseSignature] are ones that the two types have in common.
But since Signature is derived from BaseSignature: "Union[Signature, BaseSignature]" is just a complicated way to write "BaseSignature".
Absent any
isinstance()
checks, the only properties that you can rely on regardingUnion[Signature, BaseSignature]
are ones that the two types have in common.But since
Signature
is derived fromBaseSignature
: "Union[Signature, BaseSignature]
" is just a complicated way to write "BaseSignature
".