KeywordArgumentError

exception KeywordArgumentError(cls, s)[source]

Thrown when missing a keyword-only argument.

Initialize the error.

Parameters:
  • cls – The class that was trying to be instantiated

  • s (str) – The string describing the original type error