We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 861c5bf commit 04a5314Copy full SHA for 04a5314
rdt/transformers/pii/anonymizer.py
@@ -197,7 +197,10 @@ def reset_randomization(self):
197
def _function(self):
198
"""Return the result of calling the ``faker`` function."""
199
if not hasattr(self.faker.unique, '_excluded_types'):
200
- setattr(self.faker.unique, '_excluded_types', ()) # The default is an empty tuple
+ # Faker v40.1.0 changed its uniqueness logic to rely on _excluded_types.
201
+ # Instances created before v40.1.0 don’t initialize this attribute,
202
+ # so accessing it can raise runtime errors.
203
+ setattr(self.faker.unique, '_excluded_types', ())
204
205
try:
206
if self.cardinality_rule in {'unique', 'match', 'scale'}:
0 commit comments