Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def ctau(self):
# type: () -> Optional[float]
"""
The particle c*tau, in millimeters.
None is returned if the particle width (stored in the DB) is unknown.
"""
return (
c_light * self.lifetime
if self.width is not None and self.lifetime is not None
else None
)