Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eaaa965

Browse files
committed
black
1 parent efa046e commit eaaa965

File tree

1 file changed

+4
-4
lines changed
  • opentelemetry-api/src/opentelemetry/attributes

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ def _unsafe__setitem(self, key, value):
171171
if value is not None:
172172
if key in self._dict:
173173
del self._dict[key]
174-
elif (
175-
self.maxlen is not None and len(self._dict) == self.maxlen
176-
):
174+
elif self.maxlen is not None and len(self._dict) == self.maxlen:
177175
self._dict.popitem(last=False)
178176
self.dropped += 1
179177

@@ -185,7 +183,9 @@ def __setitem__(self, key, value):
185183
with self._lock:
186184
self._unsafe__setitem(key, value)
187185

188-
def _unsafe_update(self, attributes: Optional[types.Attributes] = None, **kwargs):
186+
def _unsafe_update(
187+
self, attributes: Optional[types.Attributes] = None, **kwargs
188+
):
189189
for key, value in (attributes or {}).items():
190190
self._unsafe__setitem(key, value)
191191

0 commit comments

Comments
 (0)