Skip to content

Commit 3ca67cf

Browse files
committed
reverted changes made rule A
1 parent 10f3c7c commit 3ca67cf

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
# -- Project information -----------------------------------------------------
4848

4949
project = "OpenTelemetry Python"
50-
docs_copyright = "OpenTelemetry Authors" # pylint: disable=redefined-builtin
50+
copyright = "OpenTelemetry Authors" # pylint: disable=redefined-builtin
5151
author = "OpenTelemetry Authors"
5252

5353

opentelemetry-api/src/opentelemetry/baggage/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ def _is_valid_value(value: object) -> bool:
121121
parts = str(value).split(";")
122122
is_valid_value = _VALUE_PATTERN.fullmatch(parts[0]) is not None
123123
if len(parts) > 1: # one or more properties metadata
124-
for properties in parts[1:]:
125-
if _PROPERT_PATTERN.fullmatch(properties) is None:
124+
for property in parts[1:]:
125+
if _PROPERT_PATTERN.fullmatch(property) is None:
126126
is_valid_value = False
127127
break
128128
return is_valid_value

package-lock.json

-6
This file was deleted.

shim/opentelemetry-opentracing-shim/src/opentelemetry/shim/opentracing_shim/__init__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ def start_span(
684684
context = SpanContextShim(span.get_span_context())
685685
return SpanShim(self, context, span)
686686

687-
def inject(self, span_context, formats: object, carrier: object):
687+
def inject(self, span_context, format: object, carrier: object):
688688
"""Injects ``span_context`` into ``carrier``.
689689
690690
See base class for more details.
@@ -703,7 +703,7 @@ def inject(self, span_context, formats: object, carrier: object):
703703
# TODO: Support Format.BINARY once it is supported in
704704
# opentelemetry-python.
705705

706-
if formats not in self._supported_formats:
706+
if format not in self._supported_formats:
707707
raise UnsupportedFormatException
708708

709709
propagator = get_global_textmap()
@@ -715,7 +715,7 @@ def inject(self, span_context, formats: object, carrier: object):
715715
ctx = set_span_in_context(span)
716716
propagator.inject(carrier, context=ctx)
717717

718-
def extract(self, formats: object, carrier: object):
718+
def extract(self, format: object, carrier: object):
719719
"""Returns an ``opentracing.SpanContext`` instance extracted from a
720720
``carrier``.
721721
@@ -737,7 +737,7 @@ def extract(self, formats: object, carrier: object):
737737
# uses the configured propagators in opentelemetry.propagators.
738738
# TODO: Support Format.BINARY once it is supported in
739739
# opentelemetry-python.
740-
if formats not in self._supported_formats:
740+
if format not in self._supported_formats:
741741
raise UnsupportedFormatException
742742

743743
propagator = get_global_textmap()

0 commit comments

Comments
 (0)