Update detector.py docstring