MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / _traveller

Function _traveller

src/pendulum/__init__.py:349–353  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

347 # We do this in an if-not-typing block so we don't have to duplicate the function signatures.
348 @cache
349 def _traveller() -> Traveller:
350 # Lazy load this, so we don't eagerly load Pytest if we don't need to
351 from pendulum.testing.traveller import Traveller
352
353 return Traveller(DateTime)
354
355 def freeze(*args, **kwargs) -> Traveller:
356 return _traveller().freeze(*args, **kwargs)

Callers 4

freezeFunction · 0.85
travelFunction · 0.85
travel_toFunction · 0.85
travel_backFunction · 0.85

Calls 1

TravellerClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…