From 1d0910073cb2144b83b182ad9c19afd0e9e8ea27 Mon Sep 17 00:00:00 2001
From: Joscha Schmiedt <joscha@schmiedt.dev>
Date: Wed, 17 Apr 2024 22:17:25 +0200
Subject: [PATCH] Replace deprecated @abstractpoperty and ABCMeta-based ABC

---
 src/linkahead/connection/authentication/interface.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/linkahead/connection/authentication/interface.py b/src/linkahead/connection/authentication/interface.py
index 6de43b81..04ca11cd 100644
--- a/src/linkahead/connection/authentication/interface.py
+++ b/src/linkahead/connection/authentication/interface.py
@@ -26,15 +26,13 @@ LinkAhead server.
 
 Implementing modules muts provide a `get_authentication_provider()` method.
 """
-from abc import ABCMeta, abstractmethod, abstractproperty
+from abc import ABC, abstractmethod
 import logging
 from ..utils import urlencode
 from ..interface import CaosDBServerConnection
 from ..utils import parse_auth_token, auth_token_to_cookie
 from ...exceptions import LoginFailedError
 
-# meta class compatible with Python 2 *and* 3:
-ABC = ABCMeta('ABC', (object, ), {'__slots__': ()})
 
 _LOGGER = logging.getLogger(__name__)
 
@@ -262,10 +260,12 @@ class CredentialsProvider(ABC):
         None
         """
 
-    @abstractproperty
+    @property
+    @abstractmethod
     def password(self):
         """password."""
 
-    @abstractproperty
+    @property
+    @abstractmethod
     def username(self):
         """username."""
-- 
GitLab