Browse Source

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
pull/494/merge
Jacky Lam 1 year ago
committed by GitHub
parent
commit
2a85ec4557
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/keycloak/keycloak_admin.py

2
src/keycloak/keycloak_admin.py

@ -84,7 +84,7 @@ class KeycloakAdmin:
PAGE_SIZE = 100 PAGE_SIZE = 100
_auto_refresh_token = None _auto_refresh_token = None
_connection = None
_connection: Optional[KeycloakOpenIDConnection] = None
def __init__( def __init__(
self, self,

Loading…
Cancel
Save