Coverage for sources/accretive/__init__.py: 100%

26 statements  

« prev     ^ index     » next       coverage.py v7.5.4, created at 2024-07-06 17:17 +0000

1# vim: set filetype=python fileencoding=utf-8: 

2# -*- coding: utf-8 -*- 

3 

4#============================================================================# 

5# # 

6# Licensed under the Apache License, Version 2.0 (the "License"); # 

7# you may not use this file except in compliance with the License. # 

8# You may obtain a copy of the License at # 

9# # 

10# http://www.apache.org/licenses/LICENSE-2.0 # 

11# # 

12# Unless required by applicable law or agreed to in writing, software # 

13# distributed under the License is distributed on an "AS IS" BASIS, # 

14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # 

15# See the License for the specific language governing permissions and # 

16# limitations under the License. # 

17# # 

18#============================================================================# 

19 

20 

21''' Accretive data structures. ''' 

22 

23# ruff: noqa: F401,F403 

24 

25 

26from . import __ 

27from . import aaliases 

28from . import classes 

29from . import complete 

30from . import concealment 

31from . import dictionaries 

32from . import exceptions 

33from . import modules 

34from . import namespaces 

35from . import objects 

36from . import protection 

37from . import qaliases 

38 

39from .classes import * 

40from .dictionaries import * 

41from .modules import * 

42from .namespaces import * 

43from .objects import * 

44 

45 

46_subpackages = ( concealment, protection, complete ) 

47 

48 

49__doc__ = __.generate_docstring( 

50 __.Docstring( __doc__ ), 

51 'subpackage behavior: attributes accretion', 

52 __.Docstring( 

53 'Subpackages with variants of the data structures are available:' ), 

54 __.Docstring( '\n\n'.join( 

55 "* :py:mod:`{name}`: {headline}".format( 

56 name = package.__package__, 

57 headline = ( 

58 package.__doc__ or '' ).split( '\n', maxsplit = 1 )[ 0 ] ) 

59 for package in _subpackages ) ) ) 

60 

61 

62__all__ = __.discover_public_attributes( globals( ) ) 

63__version__ = '1.1a0' 

64 

65 

66complete.modules.reclassify_modules( globals( ) ) 

67for _subpackage in _subpackages: 

68 complete.modules.reclassify_modules( vars( _subpackage ) ) 

69_attribute_visibility_includes_ = frozenset( ( '__version__', ) ) 

70__.modules[ __package__ ].__class__ = complete.modules.Module