home / github / issue_comments

Menu
  • GraphQL API

issue_comments: 489204605

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/446#issuecomment-489204605 https://api.github.com/repos/simonw/datasette/issues/446 489204605 MDEyOklzc3VlQ29tbWVudDQ4OTIwNDYwNQ== 9599 2019-05-03T18:59:51Z 2019-05-03T18:59:59Z OWNER Potential design: ```python from collections import OrderedDict class DataSpec: __slots__ = [] def __init__(self, **kwargs): if list(kwargs.keys()) != self.__slots__: raise TypeError( "{}() has required arguments {} (got {})".format( self.__class__.__name__, self.__slots__, list(kwargs.keys()) ) ) for key in self.__slots__: setattr(self, key, kwargs[key]) def __repr__(self): return "<{} {}>".format(self.__class__.__name__, dict(self.as_dict())) def as_dict(self): return OrderedDict([(key, getattr(self, key)) for key in self.__slots__]) class Output(DataSpec): __slots__ = ["body", "content_type", "status_code"] ``` {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} 440134714  
Powered by Datasette · Queries took 2.583ms