From e7854d0c6519f852a4bd70d1115b6e930cdffed3 Mon Sep 17 00:00:00 2001 From: Kun Yang <10774721+ykun91@users.noreply.github.com> Date: Wed, 5 Apr 2023 19:00:56 +0900 Subject: [PATCH] fix: improved type-hints (#427) --- src/keycloak/keycloak_admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/keycloak/keycloak_admin.py b/src/keycloak/keycloak_admin.py index e6d0d0b..bb93f6a 100644 --- a/src/keycloak/keycloak_admin.py +++ b/src/keycloak/keycloak_admin.py @@ -29,6 +29,7 @@ import copy import json from builtins import isinstance +from typing import Optional import deprecation from requests_toolbelt import MultipartEncoder @@ -100,7 +101,7 @@ class KeycloakAdmin: user_realm_name=None, auto_refresh_token=None, timeout=60, - connection: KeycloakOpenIDConnection = None, + connection: Optional[KeycloakOpenIDConnection] = None, ): """Init method.