Skip to content

Commit

Permalink
chore: Add typing to Keycloak admin connection (#496)
Browse files Browse the repository at this point in the history
* fix: Add typing to Keycloak admin connection

* fix: Backwards compatibility for type hinting

* fix: Use typing.Optional over typing.Union
  • Loading branch information
jackylamhk authored Nov 13, 2023
1 parent 3704c77 commit 2a85ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keycloak/keycloak_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class KeycloakAdmin:
PAGE_SIZE = 100

_auto_refresh_token = None
_connection = None
_connection: Optional[KeycloakOpenIDConnection] = None

def __init__(
self,
Expand Down

0 comments on commit 2a85ec4

Please sign in to comment.