Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callbacks covariance and contravariance #56

Open
4 tasks
mabar opened this issue Jan 27, 2023 · 0 comments
Open
4 tasks

Callbacks covariance and contravariance #56

mabar opened this issue Jan 27, 2023 · 0 comments

Comments

@mabar
Copy link
Member

mabar commented Jan 27, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant