def get_requires(self, build_requires=False, private_build_requires=False):
requires = self.requires or []<EOL>if build_requires:<EOL><INDENT>requires = requires + (self.build_requires or [])<EOL><DEDENT>if private_build_requires:<EOL><INDENT>requires = requires + (self.private_build_requires or [])<EOL><DEDENT>return requires<EOL>
Get the requirements of the variant.

        Args:
            build_requires (bool): If True, include build requirements.
            private_build_requires (bool): If True, include private build
                requirements.

        Returns:
            List of `Requirement` objects.