Skip to content

Conversation

@Antoliny0919
Copy link
Contributor

In commit e19142c, the PostGenerationContext class was moved from builders.py to declarations.py with minor modifications.

class PostGenerationDeclaration(BaseDeclaration):
    ...
    def call(self, instance, step, context):  # pragma: no cover
        """Call this hook; no return value is expected.

        Args:
            instance (object): the newly generated object
            step (bool): whether the object was 'built' or 'created'
            context: a builder.PostGenerationContext containing values
                extracted from the containing factory's declaration
        """
        raise NotImplementedError()

Following the application of this commit, the call method's comments in the PostGenerationDeclaration class regarding the context parameter should update the reference from builder.PostGenerationContext to declarations.PostGenerationContext.

rbarrois added a commit that referenced this pull request Feb 3, 2025
Thanks to Antoliny Lee for spotting this.
@rbarrois rbarrois mentioned this pull request Feb 3, 2025
@rbarrois
Copy link
Member

rbarrois commented Feb 3, 2025

Thanks! I've merged it in fa397a2 :)

@rbarrois rbarrois closed this Feb 3, 2025
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.

2 participants