diff --git a/github/client.py b/github/client.py index 8dff559..5480ff8 100644 --- a/github/client.py +++ b/github/client.py @@ -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') diff --git a/github/exceptions.py b/github/exceptions.py index 7aff10b..2399812 100644 --- a/github/exceptions.py +++ b/github/exceptions.py @@ -1,10 +1,11 @@ # == exceptions.py ==# import datetime +from typing import Tuple from aiohttp import ClientResponse -__all__ = ( +__all__: Tuple[str, ...] = ( 'APIError', 'HTTPException', 'ClientException', diff --git a/github/http.py b/github/http.py index a6257f3..5b6879b 100644 --- a/github/http.py +++ b/github/http.py @@ -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', ) diff --git a/github/objects.py b/github/objects.py index 9fb5ed8..fec1f2f 100644 --- a/github/objects.py +++ b/github/objects.py @@ -10,7 +10,7 @@ from datetime import datetime import io import os -__all__ = ( +__all__: Tuple[str, ...] = ( 'APIObject', 'dt_formatter', 'repr_dt',