You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classTwitter(Platform):
def__init__(self, auth: TwitterAuth, max_images: int=4, *types: Type[types.Content]):
self._twitter_auth=authself.max_images=max_imagesprint(f"twitter: {types}")
super().__init__(types)
# ...# A chain of inheritance is formed with Platform
And the root init gets called, thus the signature is obv. incorrect and it fails.
(The first init only needs a list, while we get an int for in the Twitter class)
For now I can make a function that calls the init correctly, but Callable mode will not work that way obv. like so:
I was just about to ask for more info since I tried to replicate the problem on my end and didn't find any problems. I'm glad you pinpointed the problem.
Unrelated to your problem, but useful nonetheless (just a small tip): if you add the following line to your script, whenever you export a graph that contains this node the resulting Python code will import Twitter directly from lazysocials.platforms:
Exporting to Python will still work fine without it, so it is not mandatory. Without it, though, the resulting exported Python code will import the Twitter class from your node script rather than import it directly from lazysocials.platforms. Functionally, the end result is the same, but it is a bit more roundabout.
Node:
Twitter:
And the root init gets called, thus the signature is obv. incorrect and it fails.
(The first init only needs a list, while we get an int for in the
Twitter
class)For now I can make a function that calls the init correctly, but Callable mode will not work that way obv. like so:
The text was updated successfully, but these errors were encountered: