Skip to content

Commit b7e00e5

Browse files
authored
fix Python 3.7+ compatibility by avoiding union syntax and rely on typing (#213)
Signed-off-by: tarilabs <[email protected]>
2 parents 5d3c15d + b648fd3 commit b7e00e5

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
1414
The versions coincide with releases on pip. Only major versions will be released as tags on Github.
1515

1616
## [0.0.x](https://github.com/oras-project/oras-py/tree/main) (0.0.x)
17+
- fix Python 3.7+ compatibility by avoiding union syntax and rely on typing (0.2.38)
1718
- Use the correct credsStore/credHelpers binary (0.2.37)
1819
- Properly prioritize auth methods (0.2.36)
1920
- fix 'authentication with ECR' to be an extra as intended (0.2.35)

oras/auth/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def logout(self, hostname: str):
6464
def _logout(self):
6565
pass
6666

67-
def _get_auth_from_creds_store(self, suffix: str, hostname: str) -> str | None:
67+
def _get_auth_from_creds_store(self, suffix: str, hostname: str) -> Optional[str]:
6868
binary = f"docker-credential-{suffix}"
6969
try:
7070
proc = subprocess.run(

oras/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
__copyright__ = "Copyright The ORAS Authors."
33
__license__ = "Apache-2.0"
44

5-
__version__ = "0.2.37"
5+
__version__ = "0.2.38"
66
AUTHOR = "Vanessa Sochat"
77
88
NAME = "oras"

0 commit comments

Comments
 (0)