11from _typeshed import Incomplete
22from typing import Final
33
4+ from reportlab .graphics .shapes import Group
45from reportlab .graphics .widgetbase import Widget
56from reportlab .platypus import Flowable
67
78__version__ : Final [str ]
8- adobe2codec : Incomplete
9+ adobe2codec : dict [ str , str ]
910
1011class CodeChartBase (Flowable ):
1112 rows : Incomplete
@@ -14,7 +15,7 @@ class CodeChartBase(Flowable):
1415 ylist : Incomplete
1516 xlist : Incomplete
1617 def calcLayout (self ) -> None : ...
17- def formatByte (self , byt ): ...
18+ def formatByte (self , byt ) -> str : ...
1819 def drawChars (self , charList ) -> None : ...
1920 def drawLabels (self , topLeft : str = "" ) -> None : ...
2021
@@ -35,7 +36,7 @@ class SingleByteEncodingChart(CodeChartBase):
3536 boxSize : int = 14 ,
3637 hex : int = 1 ,
3738 ) -> None : ...
38- def draw (self ): ...
39+ def draw (self ) -> None : ...
3940
4041class KutenRowCodeChart (CodeChartBase ):
4142 row : Incomplete
@@ -49,7 +50,7 @@ class KutenRowCodeChart(CodeChartBase):
4950 encodingName : Incomplete
5051 fontName : Incomplete
5152 def __init__ (self , row , faceName , encodingName ) -> None : ...
52- def makeRow (self , row ): ...
53+ def makeRow (self , row ) -> list [ bytes | list [ None ]] : ...
5354 def draw (self ) -> None : ...
5455
5556class Big5CodeChart (CodeChartBase ):
@@ -64,7 +65,7 @@ class Big5CodeChart(CodeChartBase):
6465 rowLabels : Incomplete
6566 fontName : Incomplete
6667 def __init__ (self , row , faceName , encodingName ) -> None : ...
67- def makeRow (self , row ): ...
68+ def makeRow (self , row ) -> list [ bytes | list [ None ]] : ...
6869 def draw (self ) -> None : ...
6970
7071def hBoxText (msg , canvas , x , y , fontName ) -> None : ...
@@ -75,6 +76,6 @@ class CodeWidget(Widget):
7576 width : int
7677 height : int
7778 def __init__ (self ) -> None : ...
78- def draw (self ): ...
79+ def draw (self ) -> Group : ...
7980
8081def test () -> None : ...
0 commit comments