import inspect


def _is_non_defaulted_positional_args(param: inspect.Parameter) -> bool:
  """Returns True if `param` is a positional argument with no default."""
  return ((param.kind == param.POSITIONAL_OR_KEYWORD or
           param.kind == param.POSITIONAL_ONLY) and
          param.default is param.empty)