Node, Trans and User classes do not have the same signatures:
|
class Node(): |
|
|
|
def __init__(self, response, full_dehydrate=False): |
|
class User(): |
|
""" User Record |
|
""" |
|
def __init__(self, response, http, full_dehydrate=False, logging=False): |
|
class Trans(): |
|
|
|
def __init__(self, response): |
|
self.id = response['_id'] |
|
self.body = response |
It's inconsistent and prevents usage of such structures for webhooks (we're currently implementing webhooks and we want to use these structures, but it doesn't work as expected).
Node,TransandUserclasses do not have the same signatures:SynapsePy/synapsepy/node.py
Lines 2 to 4 in c28cded
SynapsePy/synapsepy/user.py
Lines 16 to 19 in c28cded
SynapsePy/synapsepy/transaction.py
Lines 2 to 6 in c28cded
It's inconsistent and prevents usage of such structures for webhooks (we're currently implementing webhooks and we want to use these structures, but it doesn't work as expected).