gh-104050: Improve some typing around defaults and sentinel values
#104626
+23
−18
defaults and sentinel values
#104626