Skip to content

Commit

Permalink
Merge pull request #90 from gustavz/patch-1
Browse files Browse the repository at this point in the history
Rename UsDriverLicenseProvider.driver_license to us_driver_license
  • Loading branch information
omri374 authored Dec 8, 2023
2 parents 40a83fd + 5e906ab commit d07ceee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, generator):
formats = yaml.safe_load(open(us_driver_license_file))
self.formats = formats['en']['faker']['driving_license']['usa']

def driver_license(self) -> str:
def us_driver_license(self) -> str:
# US driver's licenses patterns vary by state. Here we sample a random state and format
us_state = random.choice(list(self.formats))
us_state_format = random.choice(self.formats[us_state])
Expand Down

0 comments on commit d07ceee

Please sign in to comment.