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

Silence Parameter type warning in WebHdfsClient #2231

Merged
merged 1 commit into from
Sep 19, 2017
Merged

Silence Parameter type warning in WebHdfsClient #2231

merged 1 commit into from
Sep 19, 2017

Conversation

adaitche
Copy link
Contributor

@adaitche adaitche commented Sep 11, 2017

Motivation and Description

In the webhdfs configuration, the parameter user has the default value None, which triggers the annoying warning parameter.py:259: UserWarning: Parameter None is not of type string. every time a WebHdfsClient is created. This commit prevents this by setting the default value to ''.

Have you tested this? If so, how?

Manual testing that the warning is gone.

In the webhdfs configuration, the parameter `user` has the default value
None, which triggers the annoying warning 'parameter.py:259:
UserWarning: Parameter None is not of type string.' everytime a
WebHdfsClient is created. This commit prevents this by setting the
default value to ''.
@mention-bot
Copy link

@adaitche, thanks for your PR! By analyzing the history of the files in this pull request, we identified @Tarrasch and @adamchainz to be potential reviewers.

@adaitche adaitche changed the title Silence Parameter type warning for WebHdfsClient Silence Parameter type warning in WebHdfsClient Sep 12, 2017
@dlstadther dlstadther merged commit 28c8a97 into spotify:master Sep 19, 2017
@dlstadther
Copy link
Collaborator

@adaitche Thanks!

This was referenced Jun 29, 2022
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.

3 participants