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

Refactor!: simplify mypy type hints for parse_one #1797

Merged
merged 1 commit into from
Jun 17, 2023
Merged

Conversation

georgesittas
Copy link
Collaborator

@georgesittas georgesittas commented Jun 17, 2023

Fixes #1796

The idea is that there's no point for all the different overloads, since the only thing we're interested in is matching into's type with the return type.

Copy link
Collaborator

@eakmanrq eakmanrq left a comment

Choose a reason for hiding this comment

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

Ah nice it makes it a lot easier when you don't have to cover all the combinations. Thanks for cleaning this up!

@georgesittas georgesittas merged commit 1db023f into main Jun 17, 2023
@georgesittas georgesittas deleted the jo/mypy_fixup branch June 17, 2023 17:46
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.

not-sure-if-bug: strange mypy behavior in the latest sqlglot
2 participants