mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-05-17 14:35:09 +00:00
Fix typos and __all__s
This commit is contained in:
parent
8f11987586
commit
768b81683c
4 changed files with 7 additions and 6 deletions
|
@ -32,3 +32,4 @@ __copyright__ = "Copyright (c) 2022-present VarMonke, sudosnok & contributors"
|
||||||
from .errors import *
|
from .errors import *
|
||||||
from .internals import *
|
from .internals import *
|
||||||
from .objects import *
|
from .objects import *
|
||||||
|
from . import utils
|
||||||
|
|
|
@ -49,5 +49,5 @@ class RatelimitReached(GitHubError):
|
||||||
|
|
||||||
|
|
||||||
def error_from_request(request: ClientResponse, /) -> BaseHTTPError:
|
def error_from_request(request: ClientResponse, /) -> BaseHTTPError:
|
||||||
# TODO: Make specific errrors
|
# TODO: Make specific errors
|
||||||
return HTTPError(request)
|
return HTTPError(request)
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
from typing import Literal, TypedDict
|
|
||||||
|
|
||||||
from typing_extensions import NotRequired
|
|
||||||
|
|
||||||
__all__ = ("SecurtiyAndAnalysis",)
|
__all__ = ("SecurtiyAndAnalysis",)
|
||||||
|
|
||||||
|
from typing import Literal, TypedDict, TYPE_CHECKING
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from typing_extensions import NotRequired
|
||||||
|
|
||||||
|
|
||||||
class AdvancedSecurity(TypedDict):
|
class AdvancedSecurity(TypedDict):
|
||||||
status: Literal["enabled", "disabled"]
|
status: Literal["enabled", "disabled"]
|
||||||
|
|
|
@ -5,7 +5,6 @@ __all__ = (
|
||||||
"str_to_datetime",
|
"str_to_datetime",
|
||||||
"repr_dt",
|
"repr_dt",
|
||||||
"bytes_to_b64",
|
"bytes_to_b64",
|
||||||
"error_from_request",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
from base64 import b64encode
|
from base64 import b64encode
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue