-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When setting a type from assertIsInstance narrow the original type if…
… possible. If we cannot narrow the type we continue to fall back to just instantiating the asserted types, rather than saying the assert will fail. PiperOrigin-RevId: 575998510
- Loading branch information
1 parent
de0b10c
commit 3289302
Showing
2 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters