# mt940.utils module

class mt940.utils.Strip(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

  Bases: `IntEnum`

  BOTH = 3
  LEFT = 1
  NONE = 0
  RIGHT = 2

mt940.utils.coalesce(*args)

  Return the first non-None argument

      >>> coalesce()

      >>> coalesce(0, 1)
      0
      >>> coalesce(None, 0)
      0

mt940.utils.join_lines(string, strip=Strip.BOTH)

  Join strings together and strip whitespace in between if needed