Browse Source
chore: add typing for KeycloakAdmin connection attribute (#492)
pull/508/head
Kevin Bannier
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/keycloak/keycloak_admin.py
|
@ -204,7 +204,7 @@ class KeycloakAdmin: |
|
|
self.connection.realm_name = value |
|
|
self.connection.realm_name = value |
|
|
|
|
|
|
|
|
@property |
|
|
@property |
|
|
def connection(self): |
|
|
|
|
|
|
|
|
def connection(self) -> KeycloakOpenIDConnection: |
|
|
"""Get connection. |
|
|
"""Get connection. |
|
|
|
|
|
|
|
|
:returns: Connection manager |
|
|
:returns: Connection manager |
|
@ -213,7 +213,7 @@ class KeycloakAdmin: |
|
|
return self._connection |
|
|
return self._connection |
|
|
|
|
|
|
|
|
@connection.setter |
|
|
@connection.setter |
|
|
def connection(self, value): |
|
|
|
|
|
|
|
|
def connection(self, value: KeycloakOpenIDConnection) -> None: |
|
|
self._connection = value |
|
|
self._connection = value |
|
|
|
|
|
|
|
|
@property |
|
|
@property |
|
|