summaryrefslogtreecommitdiff
path: root/wrappers/python/eduvpn_common/discovery.py
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-03-01 00:35:39 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2023-03-01 00:35:39 +0100
commitb0236124fb328f5d1e863f3c76e6d57273519a15 (patch)
tree9b28b3637061f8ff1637e88adf8914a069baf5b1 /wrappers/python/eduvpn_common/discovery.py
parenta1519ff7685ac987f9d70b1fb49bf777028d49b0 (diff)
Format: Run black and gofumpt
Diffstat (limited to 'wrappers/python/eduvpn_common/discovery.py')
-rw-r--r--wrappers/python/eduvpn_common/discovery.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/wrappers/python/eduvpn_common/discovery.py b/wrappers/python/eduvpn_common/discovery.py
index aa5a667..1d59c00 100644
--- a/wrappers/python/eduvpn_common/discovery.py
+++ b/wrappers/python/eduvpn_common/discovery.py
@@ -16,7 +16,14 @@ class DiscoOrganization:
:param: secure_internet_home: str: Indicating which server is the secure internet home server
:param: keyword_list: The list of strings that the users gets to search on to find the server
"""
- def __init__(self, display_name: str, org_id: str, secure_internet_home: str, keyword_list: List[str]):
+
+ def __init__(
+ self,
+ display_name: str,
+ org_id: str,
+ secure_internet_home: str,
+ keyword_list: List[str],
+ ):
self.display_name = display_name
self.org_id = org_id
self.secure_internet_home = secure_internet_home
@@ -33,6 +40,7 @@ class DiscoOrganizations:
:param: version: int: The version of the list as returned by Discovery
:param: organizations: List[DiscoOrganization]: The actual list of discovery organizations
"""
+
def __init__(self, version: int, organizations: List[DiscoOrganization]):
self.version = version
self.organizations = organizations
@@ -50,6 +58,7 @@ class DiscoServer:
:param: server_type: str: The server type as a string
:param: support_contacts: List[str]: The list of support contacts
"""
+
def __init__(
self,
authentication_url_template: str,
@@ -81,6 +90,7 @@ class DiscoServers:
:param: version: int: The version of the list as returned by Discovery
:param: servers: List[DiscoServers]: The list of discovery servers
"""
+
def __init__(self, version: int, servers: List[DiscoServer]):
self.version = version
self.servers = servers