-
Notifications
You must be signed in to change notification settings - Fork 323
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
Fixing SSRC Typos and Minor Bugs #841
base: ssrc
Are you sure you want to change the base?
Conversation
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.
Thank you! Overall LGTM!
Left a few comments
@@ -197,7 +197,7 @@ def get_float(self, key): | |||
return self.get_value(key).as_float() | |||
|
|||
def get_value(self, key): | |||
if self._config_values[key]: | |||
if key in self._config_values: | |||
return self._config_values[key] |
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.
You might also be able to just do self._config_values.get(key, _Value('static'))
here
@@ -197,7 +197,7 @@ def get_float(self, key): | |||
return self.get_value(key).as_float() | |||
|
|||
def get_value(self, key): |
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.
Could we add type hints for all the functions where possible, please?
We are trying to add type hints to any new code. For example, see:
def verify_token(self, token: str) -> Dict[str, Any]: |
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.
Just noticed that you have added typehints to return types in most of the public functions. Thanks!
predicate_fn: A function that takes an integer and returns a boolean. | ||
version1: The first semantic version string. | ||
version2: The second semantic version string. | ||
predicate_fn: A function that takes an integer and returns a boolean. |
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.
Let's get a TW review on these docstrings
Hey there! So you want to contribute to a Firebase SDK?
Before you file this pull request, please read these guidelines:
Discussion
If not, go file an issue about this before creating a pull request to discuss.
Testing
API Changes
us make Firebase APIs better, please propose your change in an issue so that we
can discuss it together.