Browse Source
fix: Backwards compatibility for type hinting
pull/496/head
Jacky Lam
2 years ago
No known key found for this signature in database
GPG Key ID: 3808B044D81BD127
1 changed files with
2 additions and
2 deletions
-
src/keycloak/keycloak_admin.py
|
|
@ -29,7 +29,7 @@ |
|
|
|
import copy |
|
|
|
import json |
|
|
|
from builtins import isinstance |
|
|
|
from typing import Optional |
|
|
|
from typing import Optional, Union |
|
|
|
|
|
|
|
import deprecation |
|
|
|
from requests_toolbelt import MultipartEncoder |
|
|
@ -84,7 +84,7 @@ class KeycloakAdmin: |
|
|
|
PAGE_SIZE = 100 |
|
|
|
|
|
|
|
_auto_refresh_token = None |
|
|
|
_connection: KeycloakOpenIDConnection | None = None |
|
|
|
_connection: Union[KeycloakOpenIDConnection, None] = None |
|
|
|
|
|
|
|
def __init__( |
|
|
|
self, |
|
|
|