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 graph_data.py #801

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

junholee6a
Copy link
Contributor

Issue: #717

Removing this cast() does not cause a mypy error.

By the time this line is reached, the type of self.input_file_path is builtins.str. This is because the assert statement at line 196, earlier in the function, removes the None type from self.input_file_path. Therefore this cast() doesn't do anything.

@taylorfturner
Copy link
Contributor

taylorfturner commented Apr 27, 2023

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

@taylorfturner
Copy link
Contributor

once #800 is merge, we will move to this one to update branch, review, and merge @junholee6a

Removing this cast() does not cause a mypy error.

By the time this line is reached, the type of self.input_file_path is
builtins.str. This is because the assert statement at line 196, earlier
in the function, removes the None type from self.input_file_path.
Therefore this cast() doesn't do anything.
auto-merge was automatically disabled April 27, 2023 16:03

Head branch was pushed to by a user without write access

@taylorfturner
Copy link
Contributor

okay @junholee6a read for an update branch on this one

@taylorfturner taylorfturner enabled auto-merge (squash) April 27, 2023 16:04
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 3883b65 into capitalone:main Apr 27, 2023
5 checks passed
@junholee6a junholee6a deleted the remove-cast-4 branch April 28, 2023 16:16
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