firecrown.utils.compare_optionals

firecrown.utils.compare_optionals#

firecrown.utils.compare_optionals(x, y)[source]#

Compare two objects, allowing for either or both to be None.

Parameters:
  • x (None | object) – first object

  • y (None | object) – second object

Return type:

bool

Returns:

whether the objects are equal