Browse Source

chore: add typing for KeycloakAdmin connection attribute (#492)

pull/508/head
Kevin Bannier 1 year ago
committed by GitHub
parent
commit
b5695b7792
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/keycloak/keycloak_admin.py

4
src/keycloak/keycloak_admin.py

@ -204,7 +204,7 @@ class KeycloakAdmin:
self.connection.realm_name = value
@property
def connection(self):
def connection(self) -> KeycloakOpenIDConnection:
"""Get connection.
:returns: Connection manager
@ -213,7 +213,7 @@ class KeycloakAdmin:
return self._connection
@connection.setter
def connection(self, value):
def connection(self, value: KeycloakOpenIDConnection) -> None:
self._connection = value
@property

Loading…
Cancel
Save