summaryrefslogtreecommitdiff
path: root/wsgitools
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2023-06-19 12:21:20 +0200
committerHelmut Grohne <helmut@subdivi.de>2023-06-19 12:21:20 +0200
commite76661949d7b44c7a080edd0a61426db7cb1559d (patch)
treef91c6386209cdeb0541d968c9d45b0617c2c22a3 /wsgitools
parentf1e580b1a14f980bf001662c74b0382e644850be (diff)
downloadwsgitools-e76661949d7b44c7a080edd0a61426db7cb1559d.tar.gz
digest: TokenGenerator.realm should be read-onlydevel
Diffstat (limited to 'wsgitools')
-rw-r--r--wsgitools/digest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/wsgitools/digest.py b/wsgitools/digest.py
index 18925df..6ac4005 100644
--- a/wsgitools/digest.py
+++ b/wsgitools/digest.py
@@ -186,7 +186,9 @@ class AbstractTokenGenerator:
if sys.version_info >= (3, 11):
class TokenGenerator(typing.Protocol):
- realm: str
+ @property
+ def realm(self) -> str:
+ ...
def __call__(
self, username: str, algo: str = "md5"
) -> typing.Optional[str]: