Skip to content

Conversation

@worldbeater
Copy link
Contributor

@worldbeater worldbeater commented May 1, 2021

What kind of change does this PR introduce?

This PR updates nullability annotations for the BindCommand extension method group.

What is the current behavior?

Currently, BindCommand requires the TViewModel to not be null, although in fact the parameter doesn't have to not be null, we are using the parameter for generic type resolution only. The view model parameter is only used in one place inside BindCommand, we are passing the parameter to the Reflection.ViewModelWhenAnyValue extension method, and the ViewModelWhenAnyValue extension method doesn't require the TViewModel to not be null.

image

What is the new behavior?

The type annotations are updated.

What might this PR break?

Hopefully, nothing, let's wait for the CI checks to pass.

@codecov
Copy link

codecov bot commented May 1, 2021

Codecov Report

Merging #2745 (2b124a1) into main (740ae1a) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2745   +/-   ##
=======================================
  Coverage   63.10%   63.10%           
=======================================
  Files         132      132           
  Lines        4740     4740           
=======================================
  Hits         2991     2991           
  Misses       1749     1749           
Impacted Files Coverage Δ
src/ReactiveUI/Bindings/Command/CommandBinder.cs 93.33% <ø> (ø)
...UI/Bindings/Command/CommandBinderImplementation.cs 58.20% <ø> (ø)
...dings/Command/CommandBinderImplementationMixins.cs 83.33% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 740ae1a...2b124a1. Read the comment docs.

@worldbeater worldbeater marked this pull request as ready for review May 1, 2021 23:05
@worldbeater worldbeater requested a review from glennawatson May 1, 2021 23:05
@glennawatson glennawatson merged commit eed8718 into main May 2, 2021
@glennawatson glennawatson deleted the wb-nullability-fix branch May 2, 2021 00:02
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants