Coverage for src/bob/pipelines/transformers/__init__.py: 86%

7 statements  

« prev     ^ index     » next       coverage.py v7.6.0, created at 2024-07-12 21:32 +0200

1from .str_to_types import Str_To_Types # noqa: F401 

2from .str_to_types import str_to_bool # noqa: F401 

3 

4 

5def __appropriate__(*args): 

6 """Says object was actually declared here, and not in the import module. 

7 Fixing sphinx warnings of not being able to find classes, when path is 

8 shortened. 

9 

10 Parameters 

11 ---------- 

12 *args 

13 The objects that you want sphinx to beleive that are defined here. 

14 

15 Resolves `Sphinx referencing issues <https//github.com/sphinx- 

16 doc/sphinx/issues/3048>` 

17 """ 

18 

19 for obj in args: 

20 obj.__module__ = __name__ 

21 

22 

23__appropriate__() 

24 

25# gets sphinx autodoc done right - don't remove it 

26__all__ = [_ for _ in dir() if not _.startswith("_")]