Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Dec 1, 2023
1 parent 71b1dbc commit 278772e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions fake.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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:
Expand Down

0 comments on commit 278772e

Please sign in to comment.