Fix: required arguments without typehints marked as optional.

Required arguments without typehints allow null but should not be marked as optional.