Skip to content

Document that this doesn't work for instances of a type #133

Description

@andrewpollock

I got very excited about using this, and then realised after my attempt that it can only dispatch on types, not instances of types.

I have an enum type in https://github.com/google/osv.dev/blob/79c07c93dc01ed256032cb790eaae638a4255ee1/osv/models.py#L783 and had wanted to extensibly dispatch to different types, rather than what's currently going on in https://github.com/google/osv.dev/blob/79c07c93dc01ed256032cb790eaae638a4255ee1/docker/importer/importer.py#L519

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions