pyproject.toml: pyright: ignore reportPrivateUsage
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 2 Oct 2024 03:07:07 +0000 (23:07 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 9 Oct 2024 02:56:57 +0000 (22:56 -0400)
commit129e86a4ac33ac7f9de85f12e83bb6760918cbae
treeaf95eb47e7913cae0e51b78878de40a2baf341b8
parentc9870f8ae6a2b863ebca3575919d2ac11eff6fc1
pyproject.toml: pyright: ignore reportPrivateUsage

Our code does not follow the convention of treating identifiers starting
with an underscore as private.  For instance, the `bt2` module exposes
types like `_EventMessageConst`.  Even though the user is not expected
to create objects of that type, they can still use the type in a type
check like:

    if type(msg) is bt2._EventMessageConst:

That produces a `reportPrivateUsage` in pyright / pylance.  Disable that
check to get rid of a lot of false positives.

Change-Id: I78a19653aafb923d3e429b9b321cb1f87372c83e
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/13307
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
pyproject.toml
tests/utils/python/normand.py
tests/utils/python/tjson.py
This page took 0.024321 seconds and 4 git commands to generate.