You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
checkcast can never return None, as it would throw in that case. Wouldn't it make more sense to have it return just T instead of Optional[T]? That would make its usage much easier, as I do have to do a assert is not None right now after.