1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-05-31 04:58:12 +00:00

Create gists

This commit is contained in:
VarMonke 2022-04-09 20:22:35 +05:30
parent 353977c4b2
commit a14b874258
2 changed files with 3 additions and 1 deletions

View file

@ -11,7 +11,7 @@ import aiohttp
from .exceptions import *
from .exceptions import GistNotFound, RepositoryAlreadyExists
from .objects import APIObject, User
from .objects import APIObject, User, Gist, Repository, Organization
from .urls import *
__all__ = (
@ -75,6 +75,7 @@ class Paginator:
self.should_paginate = bool(self.response.headers.get('Link', False))
types: dict[str, APIObject] = {
'user': User,
'gist' : Gist,
}
self.target_type = types[target_type]
self.pages = {}