From 5e906ab613a694e80490b83cbe5c270741dab0a0 Mon Sep 17 00:00:00 2001 From: Gustav von Zitzewitz Date: Fri, 8 Dec 2023 12:40:32 +0100 Subject: [PATCH] Rename UsDriverLicenseProvider.driver_license to us_driver_license --- presidio_evaluator/data_generator/faker_extensions/providers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presidio_evaluator/data_generator/faker_extensions/providers.py b/presidio_evaluator/data_generator/faker_extensions/providers.py index e03c10e..c975291 100644 --- a/presidio_evaluator/data_generator/faker_extensions/providers.py +++ b/presidio_evaluator/data_generator/faker_extensions/providers.py @@ -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])