Skip to content

Commit a9022d7

Browse files
author
Alejandro Casanovas
committed
Fixed Readme. Fix googleapis#219
1 parent d45e78b commit a9022d7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,12 @@ class CustomClass(ApiComponent):
395395
_endpoints = {'my_url_key': '/customendpoint'}
396396

397397
def __init__(self, *, parent=None, con=None, **kwargs):
398-
super().__init__(parent=parent, con=con, **kwargs)
398+
# connection is only needed if you want to communicate with the api provider
399+
self.con = parent.con if parent else con
400+
protocol = parent.protocol
401+
main_resource = parent.main_resource
402+
403+
super().__init__(protocol=protocol, main_resource=main_resource)
399404
# ...
400405

401406
def do_some_stuff(self):

0 commit comments

Comments
 (0)