1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-05-20 07:55:09 +00:00

fix __all__ placing

This commit is contained in:
VarMonke 2022-05-01 00:51:52 +05:30
parent 66015d737a
commit d5e5ca9a62
4 changed files with 7 additions and 6 deletions

View file

@ -1,8 +1,6 @@
# == main.py ==#
from __future__ import annotations
__all__ = ("GHClient",)
import functools
import aiohttp
@ -15,6 +13,7 @@ from typing import (
Dict,
Generator,
Optional,
Tuple,
Union,
List,
overload,
@ -27,6 +26,7 @@ from .cache import ObjectCache
from .http import http
from .objects import Gist, Issue, Organization, Repository, User, File
__all__: Tuple[str, ...] = ('GHClient',)
T = TypeVar('T')
P = ParamSpec('P')

View file

@ -1,10 +1,11 @@
# == exceptions.py ==#
import datetime
from typing import Tuple
from aiohttp import ClientResponse
__all__ = (
__all__: Tuple[str, ...] = (
'APIError',
'HTTPException',
'ClientException',

View file

@ -6,7 +6,7 @@ import json
import re
from datetime import datetime
from types import SimpleNamespace
from typing import Dict, NamedTuple, Optional, Type, Union, List
from typing import Dict, NamedTuple, Optional, Type, Tuple, Union, List
from typing_extensions import TypeAlias
import platform
@ -18,7 +18,7 @@ from .objects import User, Gist, Repository, File
from .urls import *
from . import __version__
__all__ = (
__all__: Tuple[str, ...] = (
'Paginator',
'http',
)

View file

@ -10,7 +10,7 @@ from datetime import datetime
import io
import os
__all__ = (
__all__: Tuple[str, ...] = (
'APIObject',
'dt_formatter',
'repr_dt',