summaryrefslogtreecommitdiff
path: root/wrappers
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-04-18 12:41:42 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2023-04-18 14:05:19 +0200
commit95ca836f562e52d957b4120ea86b0ddd4b058fc9 (patch)
tree9f67385593deaba0227672092fcb7848760afcd3 /wrappers
parent445838445891e349cee4d85762cc1423f8249b24 (diff)
Python Server: Make profiles optional
Diffstat (limited to 'wrappers')
-rw-r--r--wrappers/python/eduvpn_common/server.py8
1 files changed, 4 insertions, 4 deletions
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,
):