Skip to content

Commit f1d3cd4

Browse files
committed
1 parent 404915b commit f1d3cd4

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/faker_wifi_essid/wifi_essid.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
A Faker provider for Wi-Fi ESSIDs.
55
"""
66

7+
from collections.abc import Callable
8+
79
from faker.providers import BaseProvider
810

911
from .common_essids import COMMON_ESSIDS
@@ -14,7 +16,7 @@ class WifiESSID(BaseProvider):
1416
A Faker provider for Wi-Fi ESSIDs.
1517
"""
1618

17-
def common_essid(self):
19+
def common_essid(self) -> str:
1820
"""
1921
Returns a random ESSID from a list of the most commonly used ones.
2022
@@ -23,7 +25,7 @@ def common_essid(self):
2325

2426
return self.random_element(COMMON_ESSIDS)
2527

26-
def upc_default_essid(self):
28+
def upc_default_essid(self) -> str:
2729
"""
2830
Generates a random ESSID similar to the default ones used by UPC.
2931
@@ -32,7 +34,7 @@ def upc_default_essid(self):
3234

3335
return "UPC" + str(self.random_number(7, True))
3436

35-
def bbox_default_essid(self):
37+
def bbox_default_essid(self) -> str:
3638
"""
3739
Generates a random ESSID similar to the default ones used by Bouygues
3840
Telecom's Bbox.
@@ -41,13 +43,13 @@ def bbox_default_essid(self):
4143
return self.hexify("Bbox-^^^^^^", upper=True)
4244

4345
# List of the different ESSID generators.
44-
essid_generators = [
46+
essid_generators: list[Callable] = [
4547
bbox_default_essid,
4648
common_essid,
4749
upc_default_essid,
4850
]
4951

50-
def wifi_essid(self):
52+
def wifi_essid(self) -> str:
5153
"""
5254
Returns a random fake Wi-Fi essid.
5355
"""

0 commit comments

Comments
 (0)