From 17ad531f3fd23711a5422910687ea4f3764dd688 Mon Sep 17 00:00:00 2001 From: Jacky Lam Date: Mon, 13 Nov 2023 19:43:56 +0800 Subject: [PATCH] chore: Add typing to Keycloak admin connection (#496) * fix: Add typing to Keycloak admin connection * fix: Backwards compatibility for type hinting * fix: Use typing.Optional over typing.Union --- src/keycloak/keycloak_admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keycloak/keycloak_admin.py b/src/keycloak/keycloak_admin.py index 63dbbfd..75a48e1 100644 --- a/src/keycloak/keycloak_admin.py +++ b/src/keycloak/keycloak_admin.py @@ -84,7 +84,7 @@ class KeycloakAdmin: PAGE_SIZE = 100 _auto_refresh_token = None - _connection = None + _connection: Optional[KeycloakOpenIDConnection] = None def __init__( self,