traffic/algorithms/navigation.py
def holes(self) -> int:
        """Returns the number of 'holes' in a trajectory."""
        simplified: "Flight" = self.simplify(25)  # type: ignore
        if simplified.shape is None:
            return -1
        return len(simplified.shape.buffer(1e-3).interiors)
Returns the number of 'holes' in a trajectory.
Returns the number of 'holes' in a trajectory.
Returns the number of ' holes ' in a trajectory .
def holes(self) -> int:
        simplified: "Flight" = self.simplify(25)  
        if simplified.shape is None:
            return -1
        return len(simplified.shape.buffer(1e-3).interiors)
def holes ( self ) -> int : simplified : "Flight" = self . simplify ( 25 ) if simplified . shape is None : return - 1 return len ( simplified . shape . buffer ( 1e-3 ) . interiors )
Returns the number of 'holes' in a trajectory.
Returns the number of ' holes ' in a trajectory .
"""Returns the number of 'holes' in a trajectory.""" # type: ignore
self