diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2272863..098850a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -24,7 +24,7 @@ jobs: - name: Run Unimport continue-on-error: true - run: unimport ./ --ignore-init --gitignore -r + run: unimport ./ --ignore-init --gitignore --remove - name: Run Isort run: isort ./ diff --git a/github/internals/http.py b/github/internals/http.py index cdc679d..130bc04 100644 --- a/github/internals/http.py +++ b/github/internals/http.py @@ -173,7 +173,7 @@ class HTTPClient: if self.is_ratelimited: log.info( "Ratelimit exceeded, trying again in" - f" {human_readable_time_until(self._rates.reset_time - datetime.now(timezone.utc))} (URL:" # type: ignore + f" {human_readable_time_until(self._rates.reset_time - datetime.now(timezone.utc))} (URL:" f" {path}, method: {method})" ) @@ -181,7 +181,7 @@ class HTTPClient: # this might not be a good idea, might make # this raise an error instead. await asyncio.sleep( - max((self._rates.reset_time - datetime.now(timezone.utc)).total_seconds(), 0) # type: ignore + max((self._rates.reset_time - datetime.now(timezone.utc)).total_seconds(), 0) ) async with self.__session.request(