Bump to the latest available black version.
Change-Id: I62360ab9137ab2a5eb7fcc4dbbed913bfacee2e1
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/9650
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
-black ~= 22.0
+black ~= 23.9.1
flake8 >= 3.8
# Required for black 22.0, it's broken with click >= 8.1
click < 8.1
class _ComponentPorts(collections.abc.Mapping):
-
# component_ptr is a bt_component_source *, bt_component_filter * or
# bt_component_sink *. Its type must match the type expected by the
# functions passed as arguments.
def _create_field_from_ptr_template(
object_map, ptr, owner_ptr, owner_get_ref, owner_put_ref
):
-
field_class_ptr = native_bt.field_borrow_class_const(ptr)
typeid = native_bt.field_class_get_type(field_class_ptr)
field = object_map[typeid]._create_from_ptr_and_get_ref(
yield self._range_pycls(lower, upper)
def __eq__(self, other):
-
if not isinstance(other, _IntegerRangeSetConst):
return False
class _UniqueObject(_BaseObject):
-
# Create a _UniqueObject.
#
# - ptr: SWIG Object, pointer to the unique object.
# Add a listener to be called when the trace class is destroyed.
def add_destruction_listener(self, listener):
-
if not callable(listener):
raise TypeError("'listener' parameter is not callable")
class MyIter(bt2._UserMessageIterator):
def __init__(self, config, self_port_output):
-
trace = tc()
stream = trace.create_stream(stream_class)
self._msgs = [
class MyIter(bt2._UserMessageIterator):
def __init__(self, config, self_output_port):
-
nonlocal _msgs
self._at = 0
self._msgs = [
# If the next section begins at the current line, create a
# section with the metadata we gathered so far.
if curr_line_number >= next_section_line_number:
-
# Flushing the metadata of the current section.
sections.append(
_LttngMetadataStreamSection(