Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify type annotation #294

Merged
merged 1 commit into from
Nov 19, 2023
Merged

simplify type annotation #294

merged 1 commit into from
Nov 19, 2023

Conversation

dimbleby
Copy link
Contributor

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".

Copy link
Owner

@pappasam pappasam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@pappasam pappasam merged commit dff0f12 into pappasam:main Nov 19, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants