From 278772ef65149bf171d293f86bda6765a77ffd83 Mon Sep 17 00:00:00 2001 From: Artur Barseghyan Date: Fri, 1 Dec 2023 22:01:48 +0100 Subject: [PATCH] More --- fake.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/fake.py b/fake.py index 2deef92..8846c2c 100644 --- a/fake.py +++ b/fake.py @@ -898,6 +898,10 @@ class Faker: """ def __init__(self) -> None: + self._words: List[str] = [] + self._first_names: List[str] = [] + self._last_names: List[str] = [] + self.load_words() self.load_names() @@ -916,9 +920,9 @@ def load_words(self) -> None: ) def load_names(self) -> None: - self._authorship_data = AuthorshipData() - self._first_names = list(self._authorship_data.first_names) - self._last_names = list(self._authorship_data.last_names) + authorship_data = AuthorshipData() + self._first_names = list(authorship_data.first_names) + self._last_names = list(authorship_data.last_names) @staticmethod def _rot13_translate(text: str, translation_map: Dict[str, str]) -> str: