MCPcopy Create free account
hub / github.com/dateutil/dateutil / __len__

Method __len__

src/dateutil/parser/_parser.py:233–235  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

231 return "%s(%s)" % (classname, ", ".join(l))
232
233 def __len__(self):
234 return (sum(getattr(self, attr) is not None
235 for attr in self.__slots__))
236
237 def __repr__(self):
238 return self._repr(self.__class__.__name__)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected