Skip to content

Commit

Permalink
Initialise ivars in initialiser
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Nabaglo committed May 8, 2018
1 parent f90c5ff commit f117c44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clkhash/randomnames.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ def __init__(self, n):

self.names = [person for person in self.generate_random_person(n)]

self.all_male_first_names = None
self.all_female_first_names = None
self.all_last_names = None

@property
def schema_types(self):
# type: () -> Sequence[FieldSpec]
Expand Down

0 comments on commit f117c44

Please sign in to comment.