File az-core-syntx-tuple-bsc1225002.patch of Package python-azure-core.34793
Index: azure-core-1.23.1/azure/core/credentials.py
===================================================================
--- azure-core-1.23.1.orig/azure/core/credentials.py
+++ azure-core-1.23.1/azure/core/credentials.py
@@ -9,14 +9,7 @@ from typing_extensions import Protocol
import six
-class AccessToken(NamedTuple):
- """Represents an OAuth access token."""
-
- token: str
- expires_on: int
-
-AccessToken.token.__doc__ = """The token string."""
-AccessToken.expires_on.__doc__ = """The token's expiration time in Unix time."""
+AccessToken = NamedTuple("AccessToken", [("token", str), ("expires_on", int)])
class TokenCredential(Protocol):