#TODO: to be removed
# import os
# from dataclasses import asdict
# from pprint import pprint
#
# import numpy
# from typeguard.util import TYPEGUARD_CACHE
# from util import data_io
#
# from dummy_package.another_dummy_module import AnotherDummyClass
# from dummy_package.dummy_module import DummyClass, AudioConfig
# from dummy_package.dummy_module_2 import DummyClass2, dummy_fun, dummy_fun_2, \
#     DummyChild, generator, build_generator
# from redbaron_type_hinting.adding_type_hints import enrich_pyfiles_by_type_hints
#
# FILE_NAME = "types.jsonl"
#
#
# def test_type_hinting():
#     """
#     pytest --typeguard-packages=dummy_package
#     """
#     main_dummy()
#     type_logs = list(TYPEGUARD_CACHE.values())
#     enrich_pyfiles_by_type_hints(type_logs)
#
#
# def main_dummy():
#     x = DummyClass()
#     x.bla(numpy.zeros((1, 3)))
#     c = DummyClass2()
#     y = dummy_fun(x)
#     y = dummy_fun(DummyChild())
#
#     y = dummy_fun_2(AudioConfig(bitrate=4))
#     y = dummy_fun_2(AudioConfig(bitrate=None))
#     c.foo = x
#     bla = c.dummy_method(x)
#     bla = c.dummy_class_method(x)
#     bla = c.dummy_static_method(x)
#     x = AnotherDummyClass()
#     x.bla(numpy.zeros((1, 3)))
#
#     x = list(generator((DummyClass() for _ in range(3))))
#     x = list(build_generator((DummyClass() for _ in range(3))))
#
#
# # def test_dogfooding(tmp_path):
# #     TYPES_JSONL = str(tmp_path / FILE_NAME)
# #     enrich_pyfiles_by_type_hints("dummy_types.jsonl")
# #
# #     enrich_pyfiles_by_type_hints(TYPES_JSONL)