mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-05-17 22:45:08 +00:00
Moved objects into their own place in a folder for readability
This commit is contained in:
parent
9a2889702b
commit
d5ba5bc58d
6 changed files with 93 additions and 73 deletions
|
@ -9,7 +9,7 @@ import aiohttp
|
|||
|
||||
from . import http
|
||||
from .exceptions import AlreadyStarted, NotStarted
|
||||
from .objects import User
|
||||
from .objects import User, Repository
|
||||
|
||||
class Github:
|
||||
_auth = None
|
||||
|
@ -61,7 +61,7 @@ class Github:
|
|||
"""Fetch a Github user from their username."""
|
||||
return User(await http.get_user(self.session, username), self.session)
|
||||
|
||||
async def get_repo(self, repo_name: str) -> 'Repo':
|
||||
async def get_repo(self, repo_name: str) -> Repository:
|
||||
"""Fetch a Github repository from it's name."""
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue