Skip to content

Add FuzzyFunction and deprecate FuzzyAttribute - #1158

Open
ChrisJr404 wants to merge 1 commit into
FactoryBoy:masterfrom
ChrisJr404:fuzzy-function
Open

Add FuzzyFunction and deprecate FuzzyAttribute#1158
ChrisJr404 wants to merge 1 commit into
FactoryBoy:masterfrom
ChrisJr404:fuzzy-function

Conversation

@ChrisJr404

Copy link
Copy Markdown

Closes #961.

FuzzyAttribute takes a callable with no arguments, so it actually behaves like LazyFunction rather than LazyAttribute, which is what the issue points out. Following the plan Raphaël and François sketched out there, this adds a properly named FuzzyFunction and leaves FuzzyAttribute as a thin subclass that raises a DeprecationWarning pointing people at the new name.

Existing behavior is unchanged. I also updated the fuzzy docs and the changelog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FuzzyAttribute actually should be named as FuzzyFunction

1 participant