Coverage for src / c41811 / config / processor / __init__.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2025-12-09 01:06 +0000

1# cython: language_level = 3 # noqa: ERA001 

2 

3# noinspection GrazieInspection 

4""" 

5SaveLoad处理器 

6 

7.. versionchanged:: 0.2.0 

8 重命名 ``SLProcessors`` 为 ``processor`` 

9""" 

10 

11from typing import TYPE_CHECKING as __TYPE_CHECKING 

12 

13if __TYPE_CHECKING: # pragma: no cover 

14 from .cbor2 import CBOR2SL 

15 from .component import ComponentMetaParser 

16 from .component import ComponentSL 

17 from .hjson import HJsonSL 

18 from .jproperties import JPropertiesSL 

19 from .json import JsonSL 

20 from .os_env import OSEnvSL 

21 from .pickle import PickleSL 

22 from .plaintext import PlainTextSL 

23 from .python import PythonSL 

24 from .python_literal import PythonLiteralSL 

25 from .pyyaml import PyYamlSL 

26 from .rtoml import RTomlSL 

27 from .ruamel_yaml import RuamelYamlSL 

28 from .tarfile import TarCompressionTypes 

29 from .tarfile import TarFileSL 

30 from .tomlkit import TomlKitSL 

31 from .zipfile import ZipCompressionTypes 

32 from .zipfile import ZipFileSL 

33 

34 __all__ = [ 

35 "CBOR2SL", 

36 "ComponentMetaParser", 

37 "ComponentSL", 

38 "HJsonSL", 

39 "JPropertiesSL", 

40 "JsonSL", 

41 "OSEnvSL", 

42 "PickleSL", 

43 "PlainTextSL", 

44 "PyYamlSL", 

45 "PythonLiteralSL", 

46 "PythonSL", 

47 "RTomlSL", 

48 "RuamelYamlSL", 

49 "TarCompressionTypes", 

50 "TarFileSL", 

51 "TomlKitSL", 

52 "ZipCompressionTypes", 

53 "ZipFileSL", 

54 ] 

55else: 

56 from ..lazy_import import lazy_import as __lazy_import 

57 

58 __all__, __getattr__ = __lazy_import( 

59 { 

60 "CBOR2SL": ".cbor2", 

61 "ComponentMetaParser": ".component", 

62 "ComponentSL": ".component", 

63 "HJsonSL": ".hjson", 

64 "JPropertiesSL": ".jproperties", 

65 "JsonSL": ".json", 

66 "OSEnvSL": ".os_env", 

67 "PickleSL": ".pickle", 

68 "PlainTextSL": ".plaintext", 

69 "PyYamlSL": ".pyyaml", 

70 "PythonLiteralSL": ".python_literal", 

71 "PythonSL": ".python", 

72 "RTomlSL": ".rtoml", 

73 "RuamelYamlSL": ".ruamel_yaml", 

74 "TarCompressionTypes": ".tarfile", 

75 "TarFileSL": ".tarfile", 

76 "TomlKitSL": ".tomlkit", 

77 "ZipCompressionTypes": ".zipfile", 

78 "ZipFileSL": ".zipfile", 

79 } 

80 )