Skip to content

Callbacks covariance and contravariance #56

Open

Description

@mabar

Callbacks overriding should work the same way as methods usually work

  • Changing meta may be impossible, same as in Fields invariance #55
  • Input parameters can be less specific (callback-specific rules may apply)
  • Return type may be more specific (callback-specific rules may apply)
  • Callbacks should be validated in scope of all classes which define or change them

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions