-
Notifications
You must be signed in to change notification settings - Fork 165
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
Conversation
Head branch was pushed to by a user without write access
1beb221
to
2b06bb4
Compare
@junholee6a update branch on this one next. We'll do this for #801 next. Thx! |
Head branch was pushed to by a user without write access
2b06bb4
to
3460bb5
Compare
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]
3460bb5
to
6550bf6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thx
Thank you for the review! |
Issue: #717
Removing this
cast()
doesn't cause a mypy error.Simply assigning
dict()
tooptions
changes its type fromUnion[builtins.dict[Any, Any], None]
tobuiltins.dict[Any, Any]
. So casting doesn't do anything here.