issue_comments: 634888582
This data as json
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | issue | performed_via_github_app |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/simonw/datasette/issues/581#issuecomment-634888582 | https://api.github.com/repos/simonw/datasette/issues/581 | 634888582 | MDEyOklzc3VlQ29tbWVudDYzNDg4ODU4Mg== | 9599 | 2020-05-27T19:23:23Z | 2020-05-27T19:23:23Z | OWNER | Here's the function I just wrote for this: ```python def call_with_supported_arguments(fn, **kwargs): parameters = inspect.signature(fn).parameters.keys() call_with = [] for parameter in parameters: if parameter not in kwargs: raise TypeError("{} requires parameters {}".format(fn, tuple(parameters))) call_with.append(kwargs[parameter]) return fn(*call_with) ``` | {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} | 502993509 |