diff --git a/opentelemetry-api/src/opentelemetry/baggage/__init__.py b/opentelemetry-api/src/opentelemetry/baggage/__init__.py index 9a740200a6f..b59ac0dd495 100644 --- a/opentelemetry-api/src/opentelemetry/baggage/__init__.py +++ b/opentelemetry-api/src/opentelemetry/baggage/__init__.py @@ -121,8 +121,8 @@ def _is_valid_value(value: object) -> bool: parts = str(value).split(";") is_valid_value = _VALUE_PATTERN.fullmatch(parts[0]) is not None if len(parts) > 1: # one or more properties metadata - for property in parts[1:]: - if _PROPERT_PATTERN.fullmatch(property) is None: + for prop in parts[1:]: + if _PROPERT_PATTERN.fullmatch(prop) is None: is_valid_value = False break return is_valid_value diff --git a/pyproject.toml b/pyproject.toml index ab84e2d398d..a342a73401e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,6 +31,7 @@ select = [ "PLC", # pylint convention "PLE", # pylint error "Q", # flake8-quotes + "A", # flake8-builtins ] ignore = [