Path 1: 145 calls (0.86)

None (145)

False (134) True (11)

1def _set_option(self, option: bool | None) -> bool:
2        """Activate some options if not explicitly deactivated."""
3        # if we have a class diagram, we want more information by default;
4        # so if the option is None, we return True
5        if option is None:
6            return bool(self.config.classes)
7        return option
            

Path 2: 23 calls (0.14)

True (20) False (3)

True (20) False (3)

1def _set_option(self, option: bool | None) -> bool:
2        """Activate some options if not explicitly deactivated."""
3        # if we have a class diagram, we want more information by default;
4        # so if the option is None, we return True
5        if option is None:
6            return bool(self.config.classes)
7        return option