Skip to content

Commit

Permalink
Replaced @functools.cache with @functools.lru_cache(maxsize=None) (#2113
Browse files Browse the repository at this point in the history
)
  • Loading branch information
debjeetsingha authored Oct 7, 2024
1 parent b605d21 commit ef3a5e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faker/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def create(
return faker

@classmethod
@functools.cache
@functools.lru_cache(maxsize=None)
def _find_provider_class(
cls,
provider_path: str,
Expand Down

0 comments on commit ef3a5e2

Please sign in to comment.