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

Remove unnecessary cast() in data.py #800

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

junholee6a
Copy link
Contributor

@junholee6a junholee6a commented Apr 26, 2023

Issue: #717

Removing this cast() doesn't cause a mypy error.

Simply assigning dict() to options changes its type from Union[builtins.dict[Any, Any], None] to builtins.dict[Any, Any]. So casting doesn't do anything here.

@taylorfturner taylorfturner enabled auto-merge (squash) April 26, 2023 21:42
auto-merge was automatically disabled April 26, 2023 23:43

Head branch was pushed to by a user without write access

@JGSweets JGSweets enabled auto-merge (squash) April 27, 2023 03:09
@taylorfturner taylorfturner added the static_typing mypy static typing issues label Apr 27, 2023
@taylorfturner
Copy link
Contributor

@junholee6a update branch on this one next. We'll do this for #801 next. Thx!

auto-merge was automatically disabled April 27, 2023 15:00

Head branch was pushed to by a user without write access

@taylorfturner
Copy link
Contributor

taylorfturner commented Apr 27, 2023

hold off merging until #803 and #799 are merged. Thx

@taylorfturner
Copy link
Contributor

okay ready to go on these, @junholee6a -- update branch and I'll approve and set to auto merge

Simply assigning dict() to options changes its type from
Union[builtins.dict[Any, Any], None] to builtins.dict[Any, Any]
Copy link
Contributor

@taylorfturner taylorfturner left a comment

Choose a reason for hiding this comment

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

LGTM thx

@taylorfturner taylorfturner merged commit 651975c into capitalone:main Apr 27, 2023
5 checks passed
@junholee6a
Copy link
Contributor Author

Thank you for the review!

@junholee6a junholee6a deleted the remove-cast-3 branch April 28, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
static_typing mypy static typing issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants