Skip to content

Annotate return type of DiffusionPipeline.from_pretrained as Self | None #10707

Description

@gabayben

DiffusionPipeline.from_pretrained returns Any | None. Return type should be explicitly annotated as Self | None.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions