False positive when using PascaleCase for class returned by namedtuple

Segment = namedtuple('Segment', 'pose0 pose1 length')

Returns:

Rename this local variable “Segment” to match the regular expression ^[_a-z][a-z0-9_]*$.

But namedtuple in python returns a class. And should thus start with a capital.