bt2: add local copy of typing module
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 16 Oct 2023 20:19:30 +0000 (16:19 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 4 Nov 2024 16:17:44 +0000 (11:17 -0500)
commit8ca63428b7e205d6bff3d56bdfffb2daabdf33a6
tree413250513f0b41b46d7bc42acb6353ce1ab8d1f1
parentbbfe7cfdfdc19e23aeb14eafc84be35d53eb8054
bt2: add local copy of typing module

Add a local copy of the typing module [1], in order to be able to use
the typing module features with Python 3.4.

Add notes about the license in the top-level LICENSE file.

Add exclusions to avoid this file being reformatted by black and
analyzed by flake8.

Add an import in utils.py, such that other files will be able to use the
typing module using:

    typing = utils._typing_mod

... and not care where the typing module comes from.

[1] https://github.com/python/typing/blob/3.10.0.2/src/typing.py

Change-Id: Id36fb65804ad8e00962b70f185c99325e314fee7
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10300
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
.pre-commit-config.yaml
LICENSE
pyproject.toml
setup.cfg
src/bindings/python/bt2/Makefile.am
src/bindings/python/bt2/bt2/local_typing.py [new file with mode: 0644]
src/bindings/python/bt2/bt2/local_typing.py.license [new file with mode: 0644]
src/bindings/python/bt2/bt2/utils.py
This page took 0.025214 seconds and 4 git commands to generate.