Mutually exclusive call
Calls to mutually exclusive methods were found in the code. This could indicate a bug or a deeper problem.
def get_metrics_noncompliant() -> None:
    import boto3
    client = boto3.client('cloudwatch', region_name='eu-west-1')
    datapoints = client.get_metric_statistics(
        Namespace='CloudWatchSdkTest',
        MetricName='PythonBotoTestMetric',
        Dimensions=[
            {
                'Name': 'DimensionName',
                'Value': 'DimensionValue'
            },
        ],
        EndTime=datetime.datetime.now(datetime.timezone.utc),
        StartTime=EndTime - datetime.timedelta(days=1),
        Period=300,
        # Noncompliant: calls mutually exclusive methods.
        Statistics=[
            'SampleCount', 'Average', 'Sum', 'Minimum', 'Maximum'
        ],
        ExtendedStatistics=[
            'p70'
        ]
    )
def get_metrics_compliant() -> None:
    import boto3
    client = boto3.client('cloudwatch', region_name='eu-west-1')
    datapoints = client.get_metric_statistics(
        Namespace='CloudWatchSdkTest',
        MetricName='PythonBotoTestMetric',
        Dimensions=[
            {
                'Name': 'DimensionName',
                'Value': 'DimensionValue'
            },
        ],
        EndTime=datetime.datetime.now(datetime.timezone.utc),
        StartTime=EndTime - datetime.timedelta(days=1),
        Period=300,
        # Compliant: avoid calling mutually exclusive methods.
        ExtendedStatistics=[
            'p99',
            'p100'
        ]
    )