Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync GitBlob class with API spec #3125

Merged
merged 4 commits into from
Jan 8, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated class according to API spec
  • Loading branch information
EnricoMi committed Jan 8, 2025
commit 44e374d59bc570b773ac147212b01fa5f2641ba9
6 changes: 4 additions & 2 deletions github/GitBlob.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
# #
################################################################################

from typing import Any, Dict
from __future__ import annotations

from typing import Any

from github.GithubObject import Attribute, CompletableGithubObject, NotSet

Expand Down Expand Up @@ -88,7 +90,7 @@ def url(self) -> str:
self._completeIfNotSet(self._url)
return self._url.value

def _useAttributes(self, attributes: Dict[str, Any]) -> None:
def _useAttributes(self, attributes: dict[str, Any]) -> None:
if "content" in attributes: # pragma no branch
self._content = self._makeStringAttribute(attributes["content"])
if "encoding" in attributes: # pragma no branch
Expand Down