Skip to content

fix Python 3.7+ compatibility by avoiding union syntax and rely on typing #213

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

Merged
merged 1 commit into from
Jun 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
The versions coincide with releases on pip. Only major versions will be released as tags on Github.

## [0.0.x](https://github.com/oras-project/oras-py/tree/main) (0.0.x)
- fix Python 3.7+ compatibility by avoiding union syntax and rely on typing (0.2.38)
- Use the correct credsStore/credHelpers binary (0.2.37)
- Properly prioritize auth methods (0.2.36)
- fix 'authentication with ECR' to be an extra as intended (0.2.35)
Expand Down
2 changes: 1 addition & 1 deletion oras/auth/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def logout(self, hostname: str):
def _logout(self):
pass

def _get_auth_from_creds_store(self, suffix: str, hostname: str) -> str | None:
def _get_auth_from_creds_store(self, suffix: str, hostname: str) -> Optional[str]:
binary = f"docker-credential-{suffix}"
try:
proc = subprocess.run(
Expand Down
2 changes: 1 addition & 1 deletion oras/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__copyright__ = "Copyright The ORAS Authors."
__license__ = "Apache-2.0"

__version__ = "0.2.37"
__version__ = "0.2.38"
AUTHOR = "Vanessa Sochat"
EMAIL = "vsoch@users.noreply.github.com"
NAME = "oras"
Expand Down