1- __all__ = ["main" , "Data" , "Args" , "Colors" , "Chart" , "HorizontalChart" , "BarChart" ]
1+ __all__ = ["main" , "Data" , "Args" , "Colors" , "Chart" , "HorizontalChart" , "BarChart" , "StackedChart" , "VerticalChart" , "HistogramChart" ]
22
33def __getattr__ (name ):
44 if name == "main" :
55 from .termgraph import main
66 return main
7- elif name in ["Data" , "Args" , "Colors" , "Chart" , "HorizontalChart" , "BarChart" ]:
7+ elif name in ["Data" , "Args" , "Colors" , "Chart" , "HorizontalChart" , "BarChart" , "StackedChart" , "VerticalChart" , "HistogramChart" ]:
88 # Import from the new modular structure
99 if name == "Data" :
1010 from .data import Data
1111 return Data
1212 elif name == "Args" :
1313 from .args import Args
1414 return Args
15- elif name in ["Colors" , "Chart" , "HorizontalChart" , "BarChart" ]:
16- from .chart import Colors , Chart , HorizontalChart , BarChart
17- return {"Colors" : Colors , "Chart" : Chart , "HorizontalChart" : HorizontalChart , "BarChart" : BarChart }[name ]
15+ elif name in ["Colors" , "Chart" , "HorizontalChart" , "BarChart" , "StackedChart" , "VerticalChart" , "HistogramChart" ]:
16+ from .chart import Colors , Chart , HorizontalChart , BarChart , StackedChart , VerticalChart , HistogramChart
17+ return {"Colors" : Colors , "Chart" : Chart , "HorizontalChart" : HorizontalChart , "BarChart" : BarChart , "StackedChart" : StackedChart , "VerticalChart" : VerticalChart , "HistogramChart" : HistogramChart }[name ]
1818 raise AttributeError (f"module '{ __name__ } ' has no attribute '{ name } '" )
0 commit comments