diff --git a/github/errors.py b/github/errors.py index 9f0ad1c..be74b18 100644 --- a/github/errors.py +++ b/github/errors.py @@ -20,7 +20,7 @@ class BaseHTTPError(GitHubError): class HTTPError(BaseHTTPError): - """Raised when an HTTP request doesn't respond with a successfull code.""" + """Raised when an HTTP request doesn't respond with a successful code.""" def __init__(self, response: ClientResponse, /) -> None: self.method = response.method @@ -30,7 +30,7 @@ class HTTPError(BaseHTTPError): def __str__(self) -> str: return ( - f"An HTTP error with the code {self.code} has occured while trying to do a" + f"An HTTP error with the code {self.code} has occurred while trying to do a" f" {self.method} request to the URL {self.url}" ) diff --git a/github/internals/http.py b/github/internals/http.py index 94be7ac..51e2228 100644 --- a/github/internals/http.py +++ b/github/internals/http.py @@ -21,7 +21,7 @@ if TYPE_CHECKING: from typing_extensions import Self from ..objects import File - from ..types import SecurtiyAndAnalysis + from ..types import SecurityAndAnalysis log = logging.getLogger("github") @@ -371,7 +371,7 @@ class HTTPClient: homepage: Optional[str] = None, private: Optional[bool] = None, visibility: Optional[Literal["public", "private", "internal"]] = None, - security_and_analysis: Optional[SecurtiyAndAnalysis] = None, + security_and_analysis: Optional[SecurityAndAnalysis] = None, has_issues: Optional[bool] = None, has_projects: Optional[bool] = None, has_wiki: Optional[bool] = None, diff --git a/github/types/security_and_analysis.py b/github/types/security_and_analysis.py index dc5201a..c1a6095 100644 --- a/github/types/security_and_analysis.py +++ b/github/types/security_and_analysis.py @@ -1,4 +1,4 @@ -__all__ = ("SecurtiyAndAnalysis",) +__all__ = ("SecurityAndAnalysis",) from typing import TYPE_CHECKING, Literal, TypedDict @@ -18,7 +18,7 @@ class SecretScanningPushProtection(TypedDict): status: Literal["enabled", "disabled"] -class SecurtiyAndAnalysis(TypedDict): +class SecurityAndAnalysis(TypedDict): advanced_security: NotRequired[AdvancedSecurity] secret_scanning: NotRequired[SecretScanning] secret_scanning_push_protection: NotRequired[SecretScanningPushProtection] diff --git a/github/utils.py b/github/utils.py index a9f33b5..61f3ca2 100644 --- a/github/utils.py +++ b/github/utils.py @@ -19,7 +19,7 @@ def human_readable_time_until(td: timedelta, /) -> str: hours, seconds = divmod(seconds, 3600) minutes, seconds = divmod(seconds, 60) - return f"{hours} hours, {minutes} minues, {seconds} seconds" + return f"{hours} hours, {minutes} minutes, {seconds} seconds" def str_to_datetime(time: Optional[str], /) -> Optional[datetime]: