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

Method __len__

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

Source from the content-addressed store, hash-verified

225 return "%s(%s)" % (classname, ", ".join(l))
226
227 def __len__(self):
228 return (sum(getattr(self, attr) is not None
229 for attr in self.__slots__))
230
231 def __repr__(self):
232 return self._repr(self.__class__.__name__)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected