Skip to content

Commit

Permalink
Rename UsDriverLicenseProvider.driver_license to us_driver_license
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavz authored Dec 8, 2023
1 parent 40a83fd commit 5e906ab
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 5e906ab

Please sign in to comment.