From 95ca836f562e52d957b4120ea86b0ddd4b058fc9 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 18 Apr 2023 12:41:42 +0200 Subject: Python Server: Make profiles optional --- wrappers/python/eduvpn_common/server.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'wrappers/python/eduvpn_common') diff --git a/wrappers/python/eduvpn_common/server.py b/wrappers/python/eduvpn_common/server.py index 55eadcd..cd3ad15 100644 --- a/wrappers/python/eduvpn_common/server.py +++ b/wrappers/python/eduvpn_common/server.py @@ -123,7 +123,7 @@ class InstituteServer(Server): :param: url: str: The base URL of the Institute Access Server :param: display_name: str: The display name of the Institute Access Server :param: support_contact: List[str]: The list of support contacts - :param: profiles: Profiles: The profiles of the server + :param: profiles: Optional[Profiles]: The profiles of the server if there are any :param: expire_time: int: The expiry time in a Unix timestamp """ @@ -132,7 +132,7 @@ class InstituteServer(Server): url: str, display_name: str, support_contact: List[str], - profiles: Profiles, + profiles: Optional[Profiles], expire_time: int, ): super().__init__(url, display_name, profiles, expire_time) @@ -155,7 +155,7 @@ class SecureInternetServer(Server): :param: display_name: str: The display name of the server :param: support_contact: List[str]: The list of support contacts of the server :param: locations: List[str]: The list of secure internet locations - :param: profiles: Profiles: The list of profiles that the server has + :param: profiles: Optional[Profiles]: The list of profiles if there are any :param: expire_time: int: The expiry time in a Unix timestamp :param: country_code: str: The country code of the server """ @@ -166,7 +166,7 @@ class SecureInternetServer(Server): display_name: str, support_contact: List[str], locations: List[str], - profiles: Profiles, + profiles: Optional[Profiles], expire_time: int, country_code: str, ): -- cgit v1.2.3