From 26848a550cb83071ceaf7cc9d9d41acc8b2236a1 Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Fri, 13 Dec 2024 15:06:38 +0100 Subject: [PATCH] Turn 'essid_generators' into a private attribute The 'essid_generators' attribute is not meant to be used outside the 'WifiESSID' class. As a result, this commit turns it into a private attribute. See https://docs.python.org/3/tutorial/classes.html#private-variables. --- src/faker_wifi_essid/wifi_essid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/faker_wifi_essid/wifi_essid.py b/src/faker_wifi_essid/wifi_essid.py index 3b136c6..ca280ee 100644 --- a/src/faker_wifi_essid/wifi_essid.py +++ b/src/faker_wifi_essid/wifi_essid.py @@ -43,7 +43,7 @@ def bbox_default_essid(self) -> str: return self.hexify("Bbox-^^^^^^", upper=True) # List of the different ESSID generators. - essid_generators: list[Callable] = [ + _essid_generators: list[Callable] = [ bbox_default_essid, common_essid, upc_default_essid, @@ -54,4 +54,4 @@ def wifi_essid(self) -> str: Returns a random fake Wi-Fi essid. """ - return self.random_element(self.essid_generators)(self) + return self.random_element(self._essid_generators)(self)