-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Implementing HappyBase methods that aren't functional in Bigtable. #1496
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
Conversation
|
Given the choice to have these stubs, LGTM. |
|
I'm not sure I understand. If the goal is swapping |
|
I just meant that being able to import |
|
Yeah I agree. @jgeewax How do you think we should handle the methods in this PR? |
|
(Commenting from mobile, so forgive if this is answered elsewhere.) How much other code needs to change ? Any short example before and after snippets ? |
|
For context, if the method is just missing, people may go off the assumption that this just want implemented yet. Having this exception raised makes it clear that it wasn't as didn't do the work, it's that the concept doesn't make sense for Bigtable. |
|
For this particular PR it is essentially the choice between class >>> class A(object):
... pass
...
>>> a = A()
>>> a.foo(1, 2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'A' object has no attribute 'foo'
>>> class B(object):
... def foo(self, x, y):
... raise NotImplementedError('We cannot do', x, 'or', y)
...
>>> b = B()
>>> b.foo(1, 2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 3, in foo
NotImplementedError: ('We cannot do', 1, 'or', 2) |
|
OK going to leave it as-is. |
Providing the methods for interface compatibility.
48e2567 to
a9e83d1
Compare
Implementing HappyBase methods that aren't functional in Bigtable.
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
…entials (#1496) * feat: refactor AWS and identity pool credentials to use suppliers (#1484) * feat: refactor aws and identity pool credentials to use supplier framework * Linting * changing class types * linting * remove unused import * Fix typing * add docstring and fix casing * feat: Adds support for custom suppliers in AWS and Identity Pool credential instantiation (#1494) * feat: refactor aws and identity pool credentials to use supplier framework * Linting * changing class types * linting * remove unused import * Fix typing * add docstring and fix casing * feat: adds support for passing suppliers to credentials. * fixes merge issues and adds _has_custom_supplier method * adds _has_custom_supplier function to identity_pool * Update google/auth/external_account.py Co-authored-by: Carl Lundin <[email protected]> * Apply suggestions from code review Co-authored-by: Carl Lundin <[email protected]> * Respond to comments and fix docs --------- Co-authored-by: Carl Lundin <[email protected]> * docs: add documentation for suppliers (#1495) * docs: update docs for programmatic * add space * update user guide * update docs * Apply suggestions from code review Co-authored-by: Leo <[email protected]> * Update docs * Add docs about context and request --------- Co-authored-by: Carl Lundin <[email protected]> Co-authored-by: Leo <[email protected]>
Providing the methods for interface compatibility.